import { motion } from 'framer-motion' import { TrustMetrics } from '@/services/api' interface MetricsPanelProps { metrics: TrustMetrics } const metricConfig = [ { key: 'trust_stability', label: 'Trust Stability', tone: '#e54b2b' }, { key: 'packet_integrity', label: 'Packet Integrity', tone: '#ff9f1c' }, { key: 'machine_confidence', label: 'Machine Confidence', tone: '#ffd84d' }, { key: 'human_readability', label: 'Human Readability', tone: '#78c26d' }, ] as const export function MetricsPanel({ metrics }: MetricsPanelProps) { const entries: Array<{ config: typeof metricConfig[number]; value: string }> = metricConfig.map(config => ({ config, value: metrics[config.key], })) return (

Machine diagnostics

Critical
{entries.map(({ config, value }, i) => (

{config.label}

{value}

))}
) }