You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

functions.web.ts 514B

1234567891011121314151617
  1. import { IReduxState } from '../app/types';
  2. import { showOverflowDrawer } from '../toolbox/functions.web';
  3. export * from './function.any';
  4. /**
  5. * Returns the visibility state of the gifs menu.
  6. *
  7. * @param {IReduxState} state - The state of the application.
  8. * @returns {boolean}
  9. */
  10. export function isGifsMenuOpen(state: IReduxState) {
  11. const overflowDrawer = showOverflowDrawer(state);
  12. const { drawerVisible, menuOpen } = state['features/gifs'];
  13. return overflowDrawer ? drawerVisible : menuOpen;
  14. }