import type { LucideIcon } from "lucide-react"; import { cn } from "@/lib/utils"; export interface StatItem { label: string; value: number | string; hint?: string; icon: LucideIcon; accent?: "default" | "amber" | "emerald" | "rose"; } const accentStyles = { default: "bg-primary/10 text-primary", amber: "bg-amber-500/10 text-amber-700 dark:text-amber-400", emerald: "bg-emerald-500/10 text-emerald-700 dark:text-emerald-400", rose: "bg-rose-500/10 text-rose-700 dark:text-rose-400", }; export function BookingStatGrid({ items }: { items: StatItem[] }) { return (
{items.map((item) => { const Icon = item.icon; const accent = item.accent ?? "default"; return (

{item.label}

{item.value}

{item.hint && (

{item.hint}

)}
); })}
); }