initializeBadgeClasses.ts 692 B

123456789101112131415161718192021
  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. tertiary: 'common-badge-tertiary',
  12. custom: 'common-badge-custom',
  13. }
  14. export const initializeBadgeClasses = (classes: BadgeClassMap) => {
  15. badgeClasses = classes
  16. }
  17. export const getBadgeClasses = () => badgeClasses