import { motion } from "framer-motion"; import { LucideIcon } from "lucide-react"; interface StatCardProps { icon: LucideIcon; label: string; value: string | number; sub?: string; variant?: "default" | "success" | "warning" | "destructive"; } const variantStyles = { default: "bg-card shadow-card", success: "bg-success/10 border-success/20", warning: "bg-warning/10 border-warning/20", destructive: "bg-destructive/10 border-destructive/20", }; const iconStyles = { default: "bg-primary/10 text-primary", success: "bg-success/15 text-success", warning: "bg-warning/15 text-warning", destructive: "bg-destructive/15 text-destructive", }; const StatCard = ({ icon: Icon, label, value, sub, variant = "default" }: StatCardProps) => (

{label}

{value}

{sub &&

{sub}

}
); export default StatCard;