import React from "react"; import { cn } from "@/lib/utils"; import { LucideIcon } from "lucide-react"; import { Card, CardContent } from "@/components/ui/card"; interface StatsCardProps { title: string; value: string | number; icon?: LucideIcon; iconColor?: string; change?: { value: number; positive: boolean; }; className?: string; iconClassName?: string; } const StatsCard = ({ title, value, icon: Icon, iconColor, change, className, iconClassName, }: StatsCardProps) => { return (

{title}

{value}

{change && (

{change.positive ? "+" : "-"}{Math.abs(change.value)}%

)}
{Icon && (
)}
); }; export default StatsCard;