import type { LucideIcon } from 'lucide-react'; import { Card, CardContent } from './ui/Card'; import { cn } from '../lib/utils'; export function MetricCard({ title, value, subtitle, icon: Icon, trend, className, }: { title: string; value: string | number; subtitle?: string; icon?: LucideIcon; trend?: { value: string; positive?: boolean }; className?: string; }) { return (

{title}

{value}

{subtitle &&

{subtitle}

} {trend && (

{trend.value}

)}
{Icon && (
)}
); }