jiti-meet/react/features/gifs/functions.web.ts

18 lines
514 B
TypeScript

import { IReduxState } from '../app/types';
import { showOverflowDrawer } from '../toolbox/functions.web';
export * from './function.any';
/**
* Returns the visibility state of the gifs menu.
*
* @param {IReduxState} state - The state of the application.
* @returns {boolean}
*/
export function isGifsMenuOpen(state: IReduxState) {
const overflowDrawer = showOverflowDrawer(state);
const { drawerVisible, menuOpen } = state['features/gifs'];
return overflowDrawer ? drawerVisible : menuOpen;
}