zammad/app/frontend/shared/initializer/initializeLinkClasses.ts

16 lines
481 B
TypeScript
Raw Permalink Normal View History

// Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
2023-12-14 16:16:58 +00:00
import type { LinkClassMap } from '#shared/components/CommonLink/types.ts'
// Provide your own map with the following keys, the values given here are just examples.
let linkClasses: LinkClassMap = {
base: 'common-link',
internal: 'common-link-internal',
2023-12-14 16:16:58 +00:00
}
export const initializeLinkClasses = (classes: LinkClassMap) => {
linkClasses = classes
}
export const getLinkClasses = () => linkClasses