// Auteur : Simon-Pierre Boucher — contact@spboucher.ai "use client"; import Link from "next/link"; import { useLang } from "./LangContext"; export interface LegalSection { title: string; paras: string[]; } export default function LegalPage({ crumb, kicker, title, updated, sections, children, }: { crumb: { fr: string; en: string }; kicker: { fr: string; en: string }; title: { fr: string; en: string }; updated: string; sections: { fr: LegalSection[]; en: LegalSection[] }; children?: React.ReactNode; }) { const { lang } = useLang(); const fr = lang === "fr"; const list = fr ? sections.fr : sections.en; return (
{fr ? kicker.fr : kicker.en}

{fr ? title.fr : title.en}

{fr ? "Dernière mise à jour" : "Last updated"} : {updated}

{list.map((s, i) => (
{String(i + 1).padStart(2, "0")}

{s.title}

{s.paras.map((p, j) => (

{p}

))}
))}
{children}

{fr ? "Responsable et contact" : "Controller and contact"}

Simon-Pierre Boucher

contact@spboucher.ai · vrai-prix.com

); }