Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

functions.any.ts 621B

123456789101112131415161718
  1. import { IStateful } from '../base/app/types';
  2. import { toState } from '../base/redux/functions';
  3. import { areThereNotifications } from '../notifications/functions';
  4. /**
  5. * Tells whether or not the notifications should be displayed within
  6. * the conference feature based on the current Redux state.
  7. *
  8. * @param {Object|Function} stateful - The redux store state.
  9. * @returns {boolean}
  10. */
  11. export function shouldDisplayNotifications(stateful: IStateful) {
  12. const state = toState(stateful);
  13. const { calleeInfoVisible } = state['features/invite'];
  14. return areThereNotifications(state) && !calleeInfoVisible;
  15. }