import { Container } from "@/components/ui"; export interface LegalSection { heading: string; paragraphs: string[]; } /** * Gemeinsames Layout fuer alle rechtlichen Seiten (Impressum, Datenschutz, * AGB, Widerrufsbelehrung, Versand und Zahlung). Inhalte sind Platzhalter * und muessen vor Live-Gang durch anwaltlich geprueften Text ersetzt werden. */ export function LegalPage({ title, noticeText, sections, }: { title: string; /** Optional — leer lassen, wenn kein Hinweis (mehr) angezeigt werden soll. */ noticeText: string; sections: LegalSection[]; }) { return (

{title}

{noticeText ? (

{noticeText}

) : null}
{sections.map((section) => (

{section.heading}

{section.paragraphs.map((p, i) => (

{p}

))}
))}
); }