initializeFileClasses.ts 471 B

123456789101112131415
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { FileClassMap } from './types.ts'
  3. // Provide your own map with the following keys, the values given here are just examples.
  4. let fileClasses: FileClassMap = {
  5. button: 'field-file-button',
  6. listContainer: 'field-file-list-container',
  7. }
  8. export const initializeFileClasses = (classes: FileClassMap) => {
  9. fileClasses = classes
  10. }
  11. export const getFileClasses = () => fileClasses