import type { LucideIcon } from "lucide-react" import { TrendingUp, TrendingDown } from "lucide-react" import { cn } from "@/lib/utils" import { Card, CardContent } from "@/components/ui/card" interface KpiCardProps { title: string value: string subtitle?: string icon: LucideIcon iconColor?: string trend?: { value: string; positive: boolean } } export function KpiCard({ title, value, subtitle, icon: Icon, iconColor = "text-primary", trend, }: KpiCardProps) { return (
{title}

{value}

{(subtitle || trend) && (
{trend && ( <> {trend.positive ? ( ) : ( )} {trend.value} )} {subtitle && ( {subtitle} )}
)}
) }