12345678910111213141516171819 |
- // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- import type { AlertClassMap } from '#shared/components/CommonAlert/types.ts'
- // Provide your own map with the following keys, the values given here are just examples.
- let alertClasses: AlertClassMap = {
- base: 'common-alert',
- danger: 'common-alert-danger',
- info: 'common-alert-info',
- link: 'common-alert-link',
- success: 'common-alert-success',
- warning: 'common-alert-warning',
- }
- export const initializeAlertClasses = (classes: AlertClassMap) => {
- alertClasses = classes
- }
- export const getAlertClasses = () => alertClasses
|