'use client' import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card' import { getHealthScoreColor } from '@/lib/design-system' interface MetricsCardProps { title: string value: string | number health?: number trend?: 'up' | 'down' | 'stable' description?: string } export default function MetricsCard({ title, value, health, trend, description }: MetricsCardProps) { const healthColor = health !== undefined ? getHealthScoreColor(health) : undefined return ( {title}
{value} {health !== undefined && ( {health}% )}
{description && (

{description}

)} {trend && (
Trend: {trend}
)}
) }