initializeAlertClasses.ts 616 B

12345678910111213141516171819
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { AlertClassMap } from '#shared/components/CommonAlert/types.ts'
  3. // Provide your own map with the following keys, the values given here are just examples.
  4. let alertClasses: AlertClassMap = {
  5. base: 'common-alert',
  6. danger: 'common-alert-danger',
  7. info: 'common-alert-info',
  8. link: 'common-alert-link',
  9. success: 'common-alert-success',
  10. warning: 'common-alert-warning',
  11. }
  12. export const initializeAlertClasses = (classes: AlertClassMap) => {
  13. alertClasses = classes
  14. }
  15. export const getAlertClasses = () => alertClasses