jiti-meet/react/features/notifications/constants.js

26 lines
527 B
JavaScript

/**
* The set of possible notification types.
*
* @enum {string}
*/
export const NOTIFICATION_TYPE = {
ERROR: 'error',
INFO: 'info',
NORMAL: 'normal',
SUCCESS: 'success',
WARNING: 'warning'
};
/**
* A mapping of notification type to priority of display.
*
* @enum {number}
*/
export const NOTIFICATION_TYPE_PRIORITIES = {
[NOTIFICATION_TYPE.ERROR]: 5,
[NOTIFICATION_TYPE.INFO]: 3,
[NOTIFICATION_TYPE.NORMAL]: 3,
[NOTIFICATION_TYPE.SUCCESS]: 3,
[NOTIFICATION_TYPE.WARNING]: 4
};