import { Banknote, CheckCircle2, FileText, Pill, UserPlus, XCircle, type LucideIcon, } from "lucide-react"; import { fmt } from "@/lib/format"; import type { Activity } from "@/types"; import { cn } from "@/lib/utils"; const kindConfig: Record< Activity["kind"], { icon: LucideIcon; tone: string } > = { claim_submitted: { icon: FileText, tone: "text-[hsl(var(--accent))]" }, claim_accepted: { icon: CheckCircle2, tone: "text-[hsl(var(--success))]" }, claim_paid: { icon: Banknote, tone: "text-[hsl(var(--success))]" }, claim_denied: { icon: XCircle, tone: "text-destructive" }, remit_received: { icon: Pill, tone: "text-[hsl(var(--warning))]" }, provider_added: { icon: UserPlus, tone: "text-foreground" }, }; export function ActivityFeed({ items, emptyMessage = "No activity yet.", }: { items: Activity[]; emptyMessage?: string; }) { if (items.length === 0) { return (
{emptyMessage}
); } return ( ); }