/** * ========================================================================= * PLATEFORME ECO-PANNEAU.FR - VERSION 1.0.0 * Socle Riverains (2/4) - Onglet L'équipe (Intervenants et Lots) * ========================================================================= */ window.pano_RiverainEquipeTab = ({ panneau, themeColor, hideIntervenants, hideLots, handleExternalLink }) => { // RÉCUPÉRATION SÉCURISÉE DES ICÔNES const { UsersIcon, BuildingIcon, MapPinIcon, PhoneIcon, MailIcon, ExternalLinkIcon } = window.pano_getIcons(); const Button = window.pano_Button || (() => null); if (!panneau.intervenants?.length && !panneau.lots?.length) { return (
L'équipe du panneau n'a pas encore été renseignée.
); } return (
{/* 1. INTERVENANTS PRINCIPAUX */} {!hideIntervenants && panneau.intervenants?.length > 0 && (

Intervenants principaux

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

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

{inter.name}

{inter.description &&

{inter.description}

} {inter.address && (

{inter.address}

)} {(inter.phone || inter.email || inter.website) && (
{inter.phone && ( )} {inter.email && ( )} {inter.website && ( )}
)}
))}
)} {/* 2. LOTS ET ENTREPRISES SOUS-TRAITANTES */} {!hideLots && panneau.lots?.length > 0 && (
0 ? 'pt-3 border-t border-slate-200/60' : ''}`}>

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}

} {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_equipe.jsx] */