/* ═══════════════════════════════════════════════════════════════ 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 (
{parts.map((part) => (

{part.heading}

{part.body.map((paragraph, i) => (

{paragraph}

))} {part.list && (
    {part.list.map((item, i) => (
  • {item}
  • ))}
)} {part.after?.map((paragraph, i) => (

{paragraph}

))}
))}
) }