eletrotupi / tcc/ frontend/constants/notification-kinds.tsa2ea1352da034bd3377e2a3cbfa4c53a75eba523
739 B | 28 lines Raw
1
import { MaterialIcons } from "@expo/vector-icons";
2
import type { NotificationKind } from "@/lib/api/types";
3

4
export type NotificationKindMeta = {
5
  icon: keyof typeof MaterialIcons.glyphMap;
6
  color: string;
7
  iconBackground: string;
8
};
9

10
// The icon and pastel bubble that identify each kind at a glance; the title and
11
// body carry the rest
12
export const NOTIFICATION_KINDS: Record<NotificationKind, NotificationKindMeta> = {
13
  DAILY_REMINDER: {
14
    icon: "mood",
15
    color: "#0EA5E9",
16
    iconBackground: "#E0F2FE",
17
  },
18
  MEDICINE_REMINDER: {
19
    icon: "medication",
20
    color: "#7C3AED",
21
    iconBackground: "#EDE9FE",
22
  },
23
  INSIGHT_ALERT: {
24
    icon: "lightbulb-outline",
25
    color: "#D97706",
26
    iconBackground: "#FEF3C7",
27
  },
28
};