import { NotifiableIncidenceType } from '../types/timeTracking/notifiableIncidenceType';

export type IncidenceNotificationVariant = {
    type: string;
    titleKey: string;
    descriptionKey: string;
};

export const INCIDENCE_NOTIFICATION_VARIANTS: Partial<Record<NotifiableIncidenceType, IncidenceNotificationVariant>> = {
    [NotifiableIncidenceType.LATE]: {
        type: 'TIME_TRACKING_INCIDENCE_LATE',
        titleKey: 'notifications.incidence.late.title',
        descriptionKey: 'notifications.incidence.late.description',
    },
    [NotifiableIncidenceType.LOCATION]: {
        type: 'TIME_TRACKING_INCIDENCE_LOCATION',
        titleKey: 'notifications.incidence.location.title',
        descriptionKey: 'notifications.incidence.location.description',
    },
    [NotifiableIncidenceType.AUTO_CLOSE]: {
        type: 'TIME_TRACKING_INCIDENCE_AUTO_CLOSE',
        titleKey: 'notifications.incidence.autoClose.title',
        descriptionKey: 'notifications.incidence.autoClose.description',
    },
};
