interface MetricCardProps { label: string value: string | number sublabel?: string icon?: string accent?: string trend?: number } export function MetricCard({ label, value, sublabel, icon, accent = '#7c3aed', trend }: MetricCardProps) { return (
{label} {icon && {icon}}
{value} {trend !== undefined && ( = 0 ? 'text-pal-green' : 'text-pal-red'}`}> {trend >= 0 ? '↑' : '↓'} {Math.abs(trend)} )}
{sublabel && {sublabel}}
) }