initializeBadgeClasses.ts 655 B

1234567891011121314151617181920
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { BadgeClassMap } from '#shared/components/CommonBadge/types.ts'
  3. // Provide your own map with the following keys, the values given here are just examples.
  4. let badgeClasses: BadgeClassMap = {
  5. base: 'common-badge',
  6. danger: 'common-badge-danger',
  7. info: 'common-badge-info',
  8. success: 'common-badge-success',
  9. warning: 'common-badge-warning',
  10. neutral: 'common-badge-neutral',
  11. custom: 'common-badge-custom',
  12. }
  13. export const initializeBadgeClasses = (classes: BadgeClassMap) => {
  14. badgeClasses = classes
  15. }
  16. export const getBadgeClasses = () => badgeClasses