Multi-tenant platform (182 pages, 228 API routes, ~30 modules) built on a deterministic verification core: clinical-trial claims checked against ClinicalTrials.gov registered results and raw event counts (ARR/NNT/RR+CI recomputed in code, oracle-tested), code-enforced exact-span grounding, and multi-source cross-verification. Auth/RBAC/multi-tenancy, document processing at scale (unpdf + Docling), agentic workflows, Claude Science connector, compliance/audit, billing, public API, and more. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
"use client";
|
|
|
|
import { NotificationsHeader } from "../_components/NotificationsHeader";
|
|
import { PrefsList } from "../_components/PrefsList";
|
|
import { usePrefs } from "../_components/usePrefs";
|
|
|
|
// Dedicated delivery-preferences sub-page: the same per-type toggles surfaced
|
|
// inline on the feed, given their own route for direct linking. Reuses the
|
|
// shared usePrefs hook and the existing /api/notification-prefs endpoint.
|
|
export default function NotificationPreferencesPage() {
|
|
const { prefsError, savingPref, isEnabled, onTogglePref } = usePrefs();
|
|
|
|
return (
|
|
<div className="max-w-2xl">
|
|
<NotificationsHeader
|
|
title="Notification preferences"
|
|
subtitle="Control which activity sends you an in-app notification."
|
|
link={{ href: "/console/notifications", label: "← Notifications" }}
|
|
/>
|
|
|
|
<div className="mt-6 bg-white border border-ink/15 rounded-lg overflow-hidden">
|
|
<PrefsList
|
|
prefsError={prefsError}
|
|
savingPref={savingPref}
|
|
isEnabled={isEnabled}
|
|
onTogglePref={onTogglePref}
|
|
/>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|