1234567891011121314151617181920212223242526272829 |
- // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- import type { TooltipVisualConfig } from '#shared/components/CommonTooltip/types.ts'
- import type { ObjectAttributesConfig } from '#shared/components/ObjectAttributes/types.ts'
- export interface SharedVisualConfig {
- objectAttributes: ObjectAttributesConfig
- tooltip: TooltipVisualConfig
- }
- const currentVisualConfig: SharedVisualConfig = {
- objectAttributes: {
- outer: 'div',
- wrapper: 'section',
- classes: {},
- },
- tooltip: {
- type: 'inline',
- component: () => null,
- },
- }
- export const useSharedVisualConfig = () => {
- return currentVisualConfig
- }
- export const setupCommonVisualConfig = (config: SharedVisualConfig) => {
- Object.assign(currentVisualConfig, config)
- }
|