import { Event } from '@/lib/api'; import Card from '@/components/ui/Card'; import SensitiveValue from '@/components/admin/SensitiveValue'; import { CalendarIcon, MapPinIcon, CurrencyDollarIcon, UsersIcon } from '@heroicons/react/24/outline'; interface OverviewTabProps { event: Event; formatDate: (dateStr: string) => string; fmtTime: (dateStr: string) => string; formatCurrency: (amount: number, currency: string) => string; confirmedCount: number; checkedInCount: number; } export function OverviewTab({ event, formatDate, fmtTime, formatCurrency, confirmedCount, checkedInCount }: OverviewTabProps) { return (

Event Information

Date & Time

{formatDate(event.startDatetime)}

{fmtTime(event.startDatetime)}{event.endDatetime && ` - ${fmtTime(event.endDatetime)}`}

Location

{event.location}

{event.locationUrl && ( View on Map )}

Price

{event.price === 0 ? 'Free' : formatCurrency(event.price, event.currency)}

Capacity

{confirmedCount + checkedInCount} / {event.capacity} spots filled

{Math.max(0, event.capacity - confirmedCount - checkedInCount)} spots remaining

Description

{event.description}

{event.descriptionEs && ( <>

Spanish:

{event.descriptionEs}

)}
{event.bannerUrl && (

Event Banner

{event.title}
)}
); }