import { Box, Card, Group, Stack, Text, useMantineColorScheme, } from "@mantine/core"; import { Calendar } from "lucide-react"; interface AgendaItem { time: string; event: string; } interface EventCardProps { agendas?: AgendaItem[]; } export function EventCard({ agendas = [] }: EventCardProps) { const { colorScheme } = useMantineColorScheme(); const dark = colorScheme === "dark"; return ( Acara Hari Ini {agendas.length > 0 ? ( {agendas.map((agenda, index) => ( {agenda.time} {agenda.event} ))} ) : ( Tidak ada acara hari ini )} ); }