'use client'; import { Card, CardContent } from '@/components/ui/card'; import { LucideIcon } from 'lucide-react'; import { motion } from 'motion/react'; interface StatsCardProps { title: string; subtitle?: string; value: number | string; icon: LucideIcon; isLoading?: boolean; } export function StatsCard({ title, subtitle, value, icon: Icon, isLoading = false, }: StatsCardProps) { return (

{title}

{isLoading ? (
) : ( <>

{value}

{subtitle && (

{subtitle}

)} )}
); }