// Auteur : Simon-Pierre Boucher — contact@spboucher.ai /** Bandeau /stats → /stats/marche : la validation externe de la mesure. */ "use client"; import Link from "next/link"; import { useLang } from "./LangContext"; export default function MarcheTeaser({ n, mdape, ratio, }: { n: number; mdape: number; ratio: number; }) { const { lang } = useLang(); const fr = lang === "fr"; const loc = fr ? "fr-CA" : "en-CA"; return (
{fr ? "Nouveau — validation externe" : "New — external validation"}

{fr ? "La mesure à l'épreuve du marché" : "The measure vs. the market"}

{fr ? `Le moteur confronté à ${n.toLocaleString(loc)} annonces réellement à vendre (base Immo-Ka) : ratio médian estimation / prix demandé ${ratio.toLocaleString(loc, { minimumFractionDigits: 3 })}, MdAPE ${(mdape * 100).toLocaleString(loc, { maximumFractionDigits: 1 })} %, et la calibration A-D vérifiée sur le terrain →` : `The engine tested on ${n.toLocaleString(loc)} properties actually for sale (Immo-Ka data): median estimate/asking ratio ${ratio.toLocaleString(loc, { minimumFractionDigits: 3 })}, ${(mdape * 100).toLocaleString(loc, { maximumFractionDigits: 1 })}% MdAPE, and the A-D calibration verified in the field →`}

); }