// icons.jsx — V1.2 icon registry (replaces emoji rendering for KDP/PDF stability) // Use in components; pass `iconKey` prop to blocks. // All icons are 1em-sized monochrome SVGs that inherit `currentColor`. const ICON_PATHS = { // Pédago / contenu "icon-ampoule": , "icon-crayon": , "icon-check": , "icon-etoile": , "icon-livre": , "icon-cible": , "icon-attention": , "icon-info": , "icon-loupe": , "icon-question": , "icon-fleche": , "icon-trophee": , "icon-horloge": , "icon-section": , "icon-sigma": , }; function Icon({ k, size = "1em", className = "", style = {}, title }) { const node = ICON_PATHS[k]; if (!node) { // fallback square — never crash a page over a missing icon return ( ); } return ( {node} ); } const ICON_KEYS = Object.keys(ICON_PATHS); Object.assign(window, { Icon, ICON_PATHS, ICON_KEYS });