notification-events
Use a notification event hook to add your own handler for various Flex Notification Manager events.
import * as Flex from '@twilio/flex-ui';
export const eventName = Flex.NotificationEvent.beforeAddNotification;
export const notificationEventHook = (flex: typeof Flex, manager: Flex.Manager, notification: any, cancel: any) => {
// your code here
};