initializeNotificationClasses.ts 775 B

12345678910111213141516171819202122
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { NotificationClassMap } from '#shared/components/CommonNotifications/types.ts'
  3. // Provide your own map with the following keys, the values given here are just examples.
  4. let notificationClasses: NotificationClassMap = {
  5. base: 'common-notification',
  6. baseContainer: 'common-notification-container',
  7. error: 'common-notification-error',
  8. info: 'common-notification-info',
  9. message: 'common-notification-message',
  10. success: 'common-notification-success',
  11. warn: 'common-notification-warn',
  12. }
  13. export const initializeNotificationClasses = (
  14. classes: NotificationClassMap,
  15. ) => {
  16. notificationClasses = classes
  17. }
  18. export const getNotificationClasses = () => notificationClasses