"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 && (
No contact details have been provided for this event.
)}