'use client' import { Card, CardContent } from '@/components/ui/card' import { cn } from '@/lib/utils' interface KPICardProps { label: string value: string | number suffix?: string trend?: { value: number; label: string } className?: string } export default function KPICard({ label, value, suffix, trend, className }: KPICardProps) { return (

{label}

{value} {suffix && {suffix}}
{trend && (

0 ? 'text-green-600' : trend.value < 0 ? 'text-red-600' : 'text-muted-foreground' )}> {trend.value > 0 ? '+' : ''}{trend.value}% {trend.label}

)}
) }