"use client"; import { FolderOpen, FolderPlus, Archive } from "lucide-react"; import type { CaseSummary } from "@/lib/types"; interface Props { data: CaseSummary; } export function CaseOverviewGrid({ data }: Props) { const safe = data ?? { active_count: 0, new_this_month: 0, closed_count: 0 }; const items = [ { label: "Aktive Akten", value: safe.active_count ?? 0, icon: FolderOpen, color: "text-blue-600", bg: "bg-blue-50", }, { label: "Neu (Monat)", value: safe.new_this_month ?? 0, icon: FolderPlus, color: "text-violet-600", bg: "bg-violet-50", }, { label: "Abgeschlossen", value: safe.closed_count ?? 0, icon: Archive, color: "text-neutral-500", bg: "bg-neutral-50", }, ]; return (