'use client' import { Card, CardContent, CardHeader, CardTitle } from '@nextsparkjs/core/components/ui/card' import { cn } from '@nextsparkjs/core/lib/utils' import { CheckSquare, CheckCircle, AlertCircle, Clock, TrendingUp, TrendingDown, type LucideIcon, } from 'lucide-react' const iconMap: Record = { CheckSquare, CheckCircle, AlertCircle, Clock, } interface StatsCardProps { title: string value: string change: string trend: 'up' | 'down' icon: keyof typeof iconMap } export function StatsCard({ title, value, change, trend, icon }: StatsCardProps) { const Icon = iconMap[icon] || CheckSquare const TrendIcon = trend === 'up' ? TrendingUp : TrendingDown const isPositive = trend === 'up' return ( {title}
{value}

{change} {' '} from last period

) }