import { Ionicons } from "@expo/vector-icons"; import { router } from "expo-router"; import { Pressable, ScrollView, View } from "react-native"; import { useTranslation } from "react-i18next"; import { Badge } from "@/components/ui/Badge"; import { Button } from "@/components/ui/Button"; import { Card } from "@/components/ui/Card"; import { EmptyState } from "@/components/ui/EmptyState"; import { AppHeader } from "@/components/ui/Header"; import { Screen } from "@/components/ui/Screen"; import { Text } from "@/components/ui/Text"; import { routes } from "@/lib/routes"; import { useNotificationStore, type NotificationKind, } from "@/lib/stores/notificationStore"; import { colors, gutter } from "@/lib/theme"; const kindMeta: Record< NotificationKind, { label: string; icon: keyof typeof Ionicons.glyphMap; tone: "brand" | "info" | "warn" | "neutral" | "danger" } > = { order: { label: "Order", icon: "cube-outline", tone: "info" }, rx: { label: "Rx", icon: "document-text-outline", tone: "warn" }, dose: { label: "Dose", icon: "alarm-outline", tone: "brand" }, loyalty: { label: "Loyalty", icon: "star-outline", tone: "brand" }, promo: { label: "Promo", icon: "pricetag-outline", tone: "neutral" }, system: { label: "Tips", icon: "information-circle-outline", tone: "neutral" }, }; export default function NotificationsScreen() { const { t } = useTranslation(); const items = useNotificationStore((s) => s.items); const markRead = useNotificationStore((s) => s.markRead); const markAllRead = useNotificationStore((s) => s.markAllRead); const remove = useNotificationStore((s) => s.remove); const unread = items.filter((n) => !n.read).length; return ( Read all ) : undefined } /> This inbox is not your Orders list. Order history lives under Profile → Orders. Notifications include dose reminders, Rx updates, loyalty, promos, and status alerts that may deep-link into an order.