import { ApiImage } from "@/components/shared/ApiImage"; import { Calendar, MapPin } from "lucide-react"; import { ContactButton } from "@/components/events/ContactButton"; type Event = { id: string; title: string; description?: string; startDate: string; endDate: string; registrationDeadline?: string | null; goLiveAt?: string; price: number; picture?: string; isSoldOut?: boolean; requiresRegistration?: boolean; contactName?: string | null; contactPhone?: string | null; contactEmail?: string | null; location?: string | null; }; import { formatDateTimeRange } from "@/lib/date"; export const EventCard = ({ event }: { event: Event }) => { const dateRange = formatDateTimeRange(event.startDate, event.endDate); return (
{event.description}