import CarouselCompetences from "./CarouselCompetences"; interface ModalGlossaireProps { mot: { mot_clef: string; description: string; images?: any[]; }; onClose: () => void; } export default function ModalGlossaire({ mot, onClose }: ModalGlossaireProps) { return (
{/* Bouton de fermeture */} {/* Titre */}

{mot.mot_clef}

{/* Description */}

{mot.description}

{/* Carrousel d'images si disponible */} {mot.images && mot.images.length > 0 && ( ({ url: `http://localhost:1337${img?.formats?.large?.url || img?.url}`, alt: img.name || "Illustration", }))} className="w-full h-64" /> )}
); }