import { Ban, Loader2, Mail, MessageCircle, Phone, UserCheck } from 'lucide-react' import { Button, Modal } from '../../../components/ui' import { formatPhoneDisplay } from '../../../lib/format' import { DetailRow } from './DetailRow' import { useGroupDetail } from './GroupDetailProvider' export function PreRegistrationDetailModal() { const { selectedPreRegistration, setSelectedPreRegistration, hasFreeCapacity, approvePreRegistration, rejectPreRegistration, isSubmittingApproval, isSubmittingRejection, } = useGroupDetail() return ( setSelectedPreRegistration(null)} title="Detalle de la pre-inscripción" maxWidth="sm" > {selectedPreRegistration ? (
{selectedPreRegistration.fullName.charAt(0).toUpperCase()}

{selectedPreRegistration.fullName}

Solicitado el{' '} {new Date(selectedPreRegistration.createdAt).toLocaleDateString('es-ES', { day: 'numeric', month: 'long', year: 'numeric', })}

} label="Teléfono">
{formatPhoneDisplay(selectedPreRegistration.phone)} WhatsApp
{selectedPreRegistration.email ? ( } label="Email"> {selectedPreRegistration.email} ) : null}
{!hasFreeCapacity ? (

El grupo alcanzó su cupo de miembros. Si aprobás, esta persona quedará en la lista de espera hasta que se libere un lugar.

) : null}
) : null}
) }