---
/* Icône d'une techno : SVG simple-icons (currentColor) si dispo,
sinon monogramme. Taille pilotée par le CSS (.tile .ic). */
import { techIcons, monogram, type TechDef } from "../lib/techIcons";
interface Props { name: string; }
const { name } = Astro.props;
const def: TechDef | undefined = techIcons[name];
const path = def && "path" in def ? def.path : null;
const mono = def && "mono" in def ? def.mono : monogram(name);
---
{path ? (
) : (
{mono}
)}