import { useEffect, useState } from 'react' import api from '../api' import toast from 'react-hot-toast' function Modal({ title, onClose, children }) { return (
{owners.length} propriétaire(s) enregistré(s)
Aucun propriétaire enregistré.
| Identité | Type | Téléphone | Adresse | ||
|---|---|---|---|---|---|
| {ownerLabel(o)} {o.siret && SIRET {o.siret}} | {o.type === 'morale' ? 'Personne morale' : 'Personne physique'} | {o.email || '—'} | {o.phone || '—'} | {o.address ? `${o.address}${o.zip_code ? ', ' + o.zip_code : ''}${o.city ? ' ' + o.city : ''}` : '—'} |
{ownerLabel(o)}
{o.type === 'morale' ? 'Morale' : 'Physique'}SIRET {o.siret}
} {o.email &&✉️ {o.email}
} {o.phone &&📞 {o.phone}
} {o.address &&{o.address}{o.zip_code ? `, ${o.zip_code}` : ''}{o.city ? ` ${o.city}` : ''}
}