// Author: Simon-Pierre Boucher — contact@spboucher.ai // ka-ui/react/KaFooter.tsx — shared Groupe KA footer (ink background), // vendored in each Vite/React app under frontend/src/ka/. Consumes // ecosystem.json for the site list; copy localized in US English for Home-Ka. import eco from "./ecosystem.json"; type LocalLink = { label: string; href: string }; const TAGLINE_EN = "A holding of fully automated product and service aggregators."; const DISCLAIMER_EN = "Groupe KA is a content aggregator: we sell nothing, rent nothing and are party to no transaction."; // English labels for the hub legal pages (hrefs unchanged) const LEGAL_LABELS_EN: Record = { "https://www.groupe-ka.com/conditions": "Terms of Use (Groupe KA)", "https://www.groupe-ka.com/confidentialite": "Privacy Policy (Groupe KA)", "https://www.groupe-ka.com/loi-25": "Personal information protection", "https://www.groupe-ka.com/bots": "Crawler transparency", }; export default function KaFooter({ siteId, localLegal = [], }: { /** id of the current site in ecosystem.json (e.g. "home-ka") */ siteId: string; /** legal pages OWNED by the site (e.g. /terms), shown before the hub's */ localLegal?: LocalLink[]; }) { const year = new Date().getFullYear(); // graceful fallback if the siteId is not (yet) in ecosystem.json const site = eco.sites.find((s) => s.id === siteId) ?? null; const others = eco.sites.filter((s) => s.id !== siteId); return ( ); }