"use client"; import { TrendingDown, TrendingUp, DollarSign, Clock, Users, } from "lucide-react"; import { Card, CardContent } from "~/components/ui/card"; type IconName = "DollarSign" | "Clock" | "Users" | "TrendingDown"; interface AnimatedStatsCardProps { title: string; value: string; change: string; trend: "up" | "down"; iconName: IconName; description: string; delay?: number; isCurrency?: boolean; numericValue?: number; } const iconMap = { DollarSign, Clock, Users, TrendingDown, } as const; export function AnimatedStatsCard({ title, value, change, trend, iconName, description, delay = 0, isCurrency = false, numericValue, }: AnimatedStatsCardProps) { const Icon = iconMap[iconName]; const TrendIcon = trend === "up" ? TrendingUp : TrendingDown; const isPositive = trend === "up"; // For now, always use the formatted value prop to ensure correct display // Animation can be added back once the basic display is working correctly const displayValue = value; // Suppress unused parameter warnings for now void delay; void isCurrency; void numericValue; return (

{title}

{change}

{displayValue}

{description}

); }