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.

constants.js 537B

123456789101112131415161718192021222324252627
  1. // @flow
  2. /**
  3. * The set of possible notification types.
  4. *
  5. * @enum {string}
  6. */
  7. export const NOTIFICATION_TYPE = {
  8. ERROR: 'error',
  9. INFO: 'info',
  10. NORMAL: 'normal',
  11. SUCCESS: 'success',
  12. WARNING: 'warning'
  13. };
  14. /**
  15. * A mapping of notification type to priority of display.
  16. *
  17. * @enum {number}
  18. */
  19. export const NOTIFICATION_TYPE_PRIORITIES = {
  20. [NOTIFICATION_TYPE.ERROR]: 5,
  21. [NOTIFICATION_TYPE.INFO]: 3,
  22. [NOTIFICATION_TYPE.NORMAL]: 3,
  23. [NOTIFICATION_TYPE.SUCCESS]: 3,
  24. [NOTIFICATION_TYPE.WARNING]: 4
  25. };