initializeOrganizationAvatarClasses.ts 647 B

1234567891011121314151617
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { OrganizationAvatarClassMap } from '#shared/components/CommonOrganizationAvatar/types.ts'
  3. // Provide your own map with the following keys, the values given here are just examples.
  4. let organizationAvatarClasses: OrganizationAvatarClassMap = {
  5. base: 'common-organization-avatar-base',
  6. inactive: 'common-organization-avatar-inactive',
  7. }
  8. export const initializeOrganizationAvatarClasses = (
  9. classes: OrganizationAvatarClassMap,
  10. ) => {
  11. organizationAvatarClasses = classes
  12. }
  13. export const getOrganizationAvatarClasses = () => organizationAvatarClasses