// src/components/MetricCard.tsx import React from 'react'; import type { ReactNode } from 'react'; import { TrendingDown, TrendingUp } from 'lucide-react'; export default function MetricCard({ title, value, change, positive, icon, description }: { title: string; value: string; change?: string; positive?: boolean; icon: ReactNode; description?: string; }) { return (

{title}

{value}

{change && (
{positive ? : } {change}
)} {description &&

{description}

}
{icon}
); }