+ {CATEGORIES.map((category) => (
+
+
+ { void toggle(category, checked); }}
+ />
+
+ ))}
+
+ );
+}
diff --git a/apps/web/lib/notification-prefs.ts b/apps/web/lib/notification-prefs.ts
new file mode 100644
index 0000000..4c8f823
--- /dev/null
+++ b/apps/web/lib/notification-prefs.ts
@@ -0,0 +1,27 @@
+import { db, userNotificationPrefs, eq } from "@epicure/db";
+
+export type NotificationCategory =
+ | "follow" | "comment" | "reply" | "reaction" | "rating" | "mention"
+ | "leftoverExpiring" | "shoppingList";
+
+export type NotificationPrefs = Record