import { NotificationType } from './NotificationType'; import { NotificationUrgency } from './NotificationUrgency'; import { NotificationMessageType } from './NotificationMessageType'; export function getNotificationUiProps(type: NotificationType): { urgency: NotificationUrgency; messageType: NotificationMessageType; } { switch (type) { case NotificationType.PAYMENT_DUE: return { urgency: NotificationUrgency.HIGH, messageType: NotificationMessageType.WAITING_ACTION, }; case NotificationType.SUBSCRIPTION_ACTIVATED: return { urgency: NotificationUrgency.LOW, messageType: NotificationMessageType.INFO, }; case NotificationType.SUBSCRIPTION_CANCELLED: return { urgency: NotificationUrgency.MEDIUM, messageType: NotificationMessageType.INFO, }; case NotificationType.SYSTEM: default: return { urgency: NotificationUrgency.LOW, messageType: NotificationMessageType.INFO, }; } }