import { FileText } from "lucide-react"; import { AppShell } from "@/components/AppShell"; import { NoticeText } from "@/components/NoticeText"; import { Card } from "@/components/Panel"; export const metadata = { title: "Privacy notice" }; const api = (process.env.ACCOUNTS_API_URL || "http://127.0.0.1:5200").replace(/\/+$/, ""); /** The privacy notice for everyone, signed in or not (1.3.0: in the account pages' frame, with headings). */ export default async function PrivacyPage() { const n = await fetch(`${api}/api/v2/notice`, { cache: "no-store" }).then((r) => r.json()).catch(() => null) as { title: string; body: string; version?: number } | null; return (

{n?.title ?? "Privacy notice"}

{n?.version &&

Version {n.version}

}
{n ? :

The privacy notice couldn't be loaded. Please try again.

}
); }