import type { LucideIcon } from "lucide-react"; import { cn } from "@/lib/cn"; export type StatItem = { label: string; value: number | string; icon?: LucideIcon; tone?: "default" | "positive" | "warning"; }; export function StatStrip({ items, className, }: { items: readonly StatItem[]; className?: string; }) { return (
{items.map(({ label, value, icon: Icon, tone = "default" }) => (
{Icon && ( )} {label}
{value}
))}
); }