initializeFilePreviewClasses.ts 708 B

12345678910111213141516171819
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { FilePreviewClassMap } from '#shared/components/CommonFilePreview/types.ts'
  3. // Provide your own map with the following keys, the values given here are just examples.
  4. let filePreviewClasses: FilePreviewClassMap = {
  5. base: 'common-file-preview',
  6. wrapper: 'common-file-preview-wrapper',
  7. icon: 'common-file-preview-icon',
  8. preview: 'common-file-preview-preview',
  9. link: 'common-file-preview-link',
  10. size: 'common-file-preview-size',
  11. }
  12. export const initializeFilePreviewClasses = (classes: FilePreviewClassMap) => {
  13. filePreviewClasses = classes
  14. }
  15. export const getFilePreviewClasses = () => filePreviewClasses