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

18 lines
514 B
TypeScript
Raw Permalink Normal View History

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;
}