import { LucideIcon } from 'lucide-react'; import { Box } from './Box'; import { Card } from './Card'; import { Icon } from './Icon'; import { Text } from './Text'; export interface MetricCardProps { label: string; value: string | number; icon?: LucideIcon; intent?: 'primary' | 'success' | 'warning' | 'critical' | 'telemetry'; trend?: { value: number; isPositive: boolean; }; } export const MetricCard = ({ label, value, icon, intent = 'primary', trend }: MetricCardProps) => { return ( {label} {value} {icon && ( )} {trend && ( {trend.isPositive ? '+' : '-'}{Math.abs(trend.value)}% vs last period )} ); };