import { Card, Heading, Shell } from "@crosscode/ui"; import { loadBranding } from "@/lib/branding"; export const metadata = { title: "Privacy notice" }; const api = (process.env.ACCOUNTS_API_URL || "http://127.0.0.1:5200").replace(/\/+$/, ""); export default async function PrivacyPage() { const branding = await loadBranding(); const n = await fetch(`${api}/api/v2/notice`, { cache: "no-store" }).then((r) => r.json()).catch(() => null) as { title: string; body: string } | null; return ( {n?.title ?? "Privacy notice"}
{n?.body ?? "The privacy notice couldn't be loaded. Please try again."}
); }