import { MapPin, Clock, ArrowRight } from "lucide-react"; import Link from "next/link"; import { AddToCalendarButton } from "@/components/public/AddToCalendarDialog"; import { formatMeetupCivilDate } from "@/lib/meetupEventTime"; interface MeetupData { id?: string; title: string; date: string; time?: string; location?: string; link?: string; description?: string; organizer?: { name: string; slug?: string }; } interface MeetupsSectionProps { meetups: MeetupData[]; } export function MeetupsSection({ meetups }: MeetupsSectionProps) { return (

Mark your calendar

Upcoming Meetups

All events
{meetups.length === 0 ? (

No upcoming meetups scheduled. Check back soon.

) : (
{meetups.map((meetup, i) => { const civil = formatMeetupCivilDate(meetup.date); const month = civil?.monthShort ?? "—"; const day = civil?.day ?? "--"; const full = civil?.full ?? ""; const href = meetup.id ? `/events/${meetup.id}` : "#upcoming-meetups"; return (
{month} {day}

{meetup.title}

{full}

{meetup.description && (

{meetup.description}

)}

Organized by{" "} {meetup.organizer?.name || "Belgian Bitcoin Embassy"}

{meetup.location && (

{meetup.location}

)} {meetup.time && (

{meetup.time}

)}
View Details ); })}
)}
All events
); }