"use client"; import { useState } from "react"; import { X, Phone, Mail, User } from "lucide-react"; type ContactButtonProps = { contactName?: string | null; contactPhone?: string | null; contactEmail?: string | null; className?: string; label?: string; }; export function ContactButton({ contactName, contactPhone, contactEmail, className, label = "Contact us" }: ContactButtonProps) { const [open, setOpen] = useState(false); const hasDetails = !!(contactName || contactPhone || contactEmail); return ( <> {open && (
setOpen(false)} >
e.stopPropagation()}>

Contact us

{hasDetails ? (
{contactName && (
{contactName}
)} {contactPhone && (
{contactPhone}
)} {contactEmail && (
{contactEmail}
)}
) : (

No contact details have been provided for this event.

)}
)} ); }