2026-01-02 13:41:09 +00:00
|
|
|
// Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
|
2023-12-14 16:16:58 +00:00
|
|
|
|
|
|
|
|
import type { NotificationClassMap } from '#shared/components/CommonNotifications/types.ts'
|
|
|
|
|
|
|
|
|
|
// Provide your own map with the following keys, the values given here are just examples.
|
|
|
|
|
let notificationClasses: NotificationClassMap = {
|
|
|
|
|
base: 'common-notification',
|
|
|
|
|
baseContainer: 'common-notification-container',
|
|
|
|
|
error: 'common-notification-error',
|
|
|
|
|
info: 'common-notification-info',
|
|
|
|
|
message: 'common-notification-message',
|
|
|
|
|
success: 'common-notification-success',
|
|
|
|
|
warn: 'common-notification-warn',
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-11 17:45:28 +00:00
|
|
|
export const initializeNotificationClasses = (classes: NotificationClassMap) => {
|
2023-12-14 16:16:58 +00:00
|
|
|
notificationClasses = classes
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const getNotificationClasses = () => notificationClasses
|