initializeUserAvatarClasses.ts 500 B

1234567891011121314
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { UserAvatarClassMap } from '#shared/components/CommonUserAvatar/types.ts'
  3. // Provide your own map with the following keys, the values given here are just examples.
  4. let userAvatarClasses: UserAvatarClassMap = {
  5. backgroundColors: [],
  6. }
  7. export const initializeUserAvatarClasses = (classes: UserAvatarClassMap) => {
  8. userAvatarClasses = classes
  9. }
  10. export const getUserAvatarClasses = () => userAvatarClasses