"use client"; import { Card, CardContent } from "@/components/ui/card"; import { LucideIcon } from "lucide-react"; interface StatCardData { label: string; value: string | number; icon?: LucideIcon; iconColor?: string; trend?: { value: string; isPositive: boolean; }; onClick?: () => void; isActive?: boolean; } interface StatCardsProps { stats: StatCardData[]; } export function StatCards({ stats }: StatCardsProps) { return (
{stats.map((stat, index) => { const Icon = stat.icon; const isClickable = !!stat.onClick; return (

{stat.label}

{stat.value}

{stat.trend && (

{stat.trend.value}

)}
{Icon && ( )}
); })}
); }