/* ═══════════════════════════════════════════════════════════════ LEGAL TEXT The Privacy and Terms pages: a list of headed parts, each a few paragraphs or a bullet list, in a readable column. The words live in the page files; this only lays them out the same way. ═══════════════════════════════════════════════════════════════ */ import type { ReactNode } from 'react' export type LegalPart = { /** Anchor for linking to one part, eg. 'cookies'. */ id: string heading: string body: ReactNode[] list?: ReactNode[] /** After the list. */ after?: ReactNode[] } export default function LegalText({ parts }: { parts: LegalPart[] }) { return (
{paragraph}
))} {part.list && ({paragraph}
))}