initializeAvatarClasses.ts 560 B

12345678910111213141516
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { AvatarClassMap } from '#shared/components/CommonAvatar/types.ts'
  3. // Provide your own map with the following keys, the values given here are just examples.
  4. let avatarClasses: AvatarClassMap = {
  5. base: 'common-avatar-base',
  6. vipUser: 'common-avatar-vip-user',
  7. vipOrganization: 'common-avatar-vip-organization',
  8. }
  9. export const initializeAvatarClasses = (classes: AvatarClassMap) => {
  10. avatarClasses = classes
  11. }
  12. export const getAvatarClasses = () => avatarClasses