const CATEGORY_COLOR = { "technical-cultural": "#5b9bd5", sports: "#51cf66", academic: "#d4a04a", }; function EventCard({ event, active }) { const color = CATEGORY_COLOR[event.category] || "#8a8a96"; return (
{event.name}
{active ? "LIVE" : `${event.start_time}–${event.end_time}`} · {event.location_id}
{event.description}
{event.attendance_count}/{event.capacity} attending
); } export default function EventsPanel({ events }) { const active = events?.active || []; const upcoming = events?.upcoming || []; if (!active.length && !upcoming.length) return null; return ( ); }