// ECO-PANNEAU.FR - _react/riverains/_riverains_equipe.jsx window.pano_RiverainEquipeTab = ({ panneau, themeColor, handleExternalLink, isPreview = false }) => { // 1. - Récupération sécurisée des icônes et composants const { UsersIcon, BuildingIcon, MapPinIcon, PhoneIcon, MailIcon, ExternalLinkIcon, FileDigitIcon } = window.pano_getIcons(); const { Button, CardGrid } = window.pano_getComponents(); const hasIntervenants = panneau.intervenants && panneau.intervenants.length > 0; const hasLots = panneau.lots && panneau.lots.length > 0; if (!hasIntervenants && !hasLots) { return (
L'équipe du panneau n'a pas encore été renseignée.
); } return (
{/* 2. - Intervenants principaux */} {hasIntervenants && (

Intervenants principaux

{panneau.intervenants.map((inter, idx) => (
{inter.logoId ? ( logo ) : (
)}

{inter.role || 'Rôle non défini'}

{inter.name}

{inter.description &&

{inter.description}

} {/* AFFICHAGE DU SIRET */} {inter.siret && (

SIRET : {inter.siret}

)} {inter.address && (

{inter.address}

)} {(inter.phone || inter.email || inter.website) && (
{inter.phone && ( )} {inter.email && ( )} {inter.website && ( )}
)}
))}
)} {/* 3. - Lots et entreprises sous-traitantes */} {hasLots && (

Entreprises sous-traitantes

{panneau.lots.map((lot, idx) => (

{lot.name}

{lot.entreprises?.map((ent, eIdx) => (
{ent.logoId ? ( logo ) : (
)}

{ent.name}

{ent.role &&

{ent.role}

} {ent.description &&

{ent.description}

} {/* AFFICHAGE DU SIRET */} {ent.siret && (

SIRET : {ent.siret}

)} {ent.address && (

{ent.address}

)} {(ent.phone || ent.email || ent.website) && (
{ent.phone && ( )} {ent.email && ( )} {ent.website && ( )}
)}
))} {(!lot.entreprises || lot.entreprises.length === 0) && (

En cours d'attribution

)}
))}
)}
); }; /* EOF ========== [_react/riverains/_riverains_equipe.jsx] */