Files
jitsi-meet/react/features/reactions/functions.web.ts
Robert Pintilii 17008237dc ref: Improve TS state (#12125)
Create IStateful interface
Use IState interface everywhere
Remove unnecessary @ts-ignore
2022-09-05 14:24:13 +03:00

12 lines
304 B
TypeScript

import { IState } from '../app/types';
/**
* Returns the visibility state of the reactions menu.
*
* @param {Object} state - The state of the application.
* @returns {boolean}
*/
export function getReactionsMenuVisibility(state: IState): boolean {
return state['features/reactions'].visible;
}