Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 2x | import type { NotificationType } from '../api/notifications.schemas'
interface NotificationTypeMeta {
emoji: string
iconClassName: string
}
/**
* Display-only mapping — the API has no icon/color field, only `type`.
* Colors follow the design reference: vaccine reminders are rose, appointment
* reminders are violet (matching the accent used for each feature
* elsewhere in the app).
*/
export const NOTIFICATION_TYPE_META: Record<NotificationType, NotificationTypeMeta> = {
VACCINE_DELAYED: {
emoji: '💉',
iconClassName: 'bg-rose-50 dark:bg-rose-950/40 text-rose-700 dark:text-rose-300',
},
APPOINTMENT_UPCOMING: {
emoji: '🩺',
iconClassName: 'bg-violet-50 dark:bg-violet-950/40 text-violet-700 dark:text-violet-300',
},
}
|