import React from 'react'; export default function MetricsPanel({ scores }) { if (!scores) return null; const metrics = [ { label: 'Confidence', value: (scores.confidence_score || 0) * 100, suffix: '%', color: 'bg-brand-500' }, { label: 'Credibility', value: (scores.credibility_avg || 0) * 100, suffix: '%', color: 'bg-green-500' }, { label: 'Agreement', value: (scores.agreement_score || 0) * 100, suffix: '%', color: 'bg-sky-500' }, { label: 'Diversity', value: (scores.diversity_score || 0) * 100, suffix: '%', color: 'bg-purple-500' }, { label: 'Recency', value: (scores.recency_score || 0) * 100, suffix: '%', color: 'bg-yellow-500' }, { label: 'Grounding', value: (scores.grounding_score || 0) * 100, suffix: '%', color: 'bg-teal-500' }, ]; return (
Level: {scores.confidence_label}
)}