initializeAlertClasses.ts 587 B

123456789101112131415161718
  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. success: 'common-alert-success',
  9. warning: 'common-alert-warning',
  10. }
  11. export const initializeAlertClasses = (classes: AlertClassMap) => {
  12. alertClasses = classes
  13. }
  14. export const getAlertClasses = () => alertClasses