import { Box, Card, Group, Progress, Text, useMantineColorScheme, } from "@mantine/core"; interface ActivityCardProps { title: string; date: string; progress: number; status: "selesai" | "berjalan" | "tertunda"; } export function ActivityCard({ title, date, progress, status, }: ActivityCardProps) { const { colorScheme } = useMantineColorScheme(); const dark = colorScheme === "dark"; const getStatusColor = (s: string) => { switch (s) { case "selesai": return "#22C55E"; case "berjalan": return "#3B82F6"; case "tertunda": return "#EF4444"; default: return "#9CA3AF"; } }; return ( {title} {date} {status.toUpperCase()} {progress}% ); }