import { Card, Badge, Icon, Label } from './primitives'
export function FeatureCard({ name, value, severity = 'low', unit = '', icon }) {
const tones = {
high: { color: '#EF4444', label: 'HIGH', tone: 'red', pct: 85 },
medium: { color: '#F59E0B', label: 'MEDIUM', tone: 'amber', pct: 55 },
low: { color: '#10B981', label: 'LOW', tone: 'green', pct: 22 },
}
const t = tones[severity] || tones.low
return (
{icon && }
{t.label}
{value}{unit}
)
}
export function StatCard({ label, value, delta, deltaColor = '#94A3B8', icon, iconColor = '#00D4FF' }) {
return (
{value}
{delta && {delta}
}
)
}