Files
jitsi-meet/react/features/conference/functions.any.ts
robertpin 7156df5b99 feat(notifications) Use our own component
Use our component instead of atlaskit
Implement redesign
Add unmount animation
Change mount animation from external lib to CSS
Remove @atlaskit/flag
Remove react-transition-group
Add unmount animation on native
Remove AbstractNotification
2023-03-14 15:18:11 +02:00

18 lines
521 B
TypeScript

import { IStateful } from '../base/app/types';
import { toState } from '../base/redux/functions';
/**
* Tells whether or not the notifications should be displayed within
* the conference feature based on the current Redux state.
*
* @param {Object|Function} stateful - The redux store state.
* @returns {boolean}
*/
export function shouldDisplayNotifications(stateful: IStateful) {
const state = toState(stateful);
const { calleeInfoVisible } = state['features/invite'];
return !calleeInfoVisible;
}