Repository Public MIT
1import { notFound } from "next/navigation";2import { Markdown } from "@/components/markdown";3import { getPage } from "@/lib/content";45export function StaticPage({ dir, slug, eyebrow }: { dir: "legal" | "."; slug: string; eyebrow: string }) {6 const doc = getPage(dir, slug);7 if (!doc) notFound();8 return (9 <article className="container-page max-w-3xl pb-10 pt-12">10 <p className="eyebrow mb-3">{eyebrow}</p>11 <h1 className="mb-8 text-3xl font-semibold tracking-tight sm:text-4xl">{doc.title}</h1>12 <Markdown source={doc.body.replace(/^\s*#\s+.*\n/, "")} trusted />13 </article>14 );15}16