{section.heading}
{paragraph}
))}import { Navbar } from "@/components/Navbar"; import { Footer } from "@/components/Footer"; import { ParticlesBackground } from "@/components/ParticlesBackground"; import { FileText, ScrollText } from "lucide-react"; type LegalSection = { heading: string; paragraphs: string[]; }; type LegalDocumentPageProps = { title: string; subtitle: string; sections: LegalSection[]; }; function makeSectionId(heading: string, index: number) { const normalized = heading .toLowerCase() .replace(/[^a-zа-я0-9]+/gi, "-") .replace(/^-+|-+$/g, ""); return normalized ? `${normalized}-${index + 1}` : `section-${index + 1}`; } export function LegalDocumentPage({ title, subtitle, sections }: LegalDocumentPageProps) { return (
{subtitle}
{paragraph}
))}