import { motion } from 'framer-motion' import { TrendingUp, TrendingDown, Minus } from 'lucide-react' import { cn } from '@/lib/utils' interface KPICardProps { label: string value: string change: number changeLabel: string icon: React.ReactNode index?: number } export function KPICard({ label, value, change, changeLabel, icon, index = 0 }: KPICardProps) { const isPositive = change > 0 const isNeutral = change === 0 return (

{label}

{value}

{icon}
{isPositive ? ( ) : isNeutral ? ( ) : ( )} {Math.abs(change)}% {changeLabel}
) }