import { Box, LinearProgress, Tooltip, Typography } from '@mui/material' function scoreColor(score: number): string { if (score >= 0.85) return '#15803d' if (score >= 0.65) return '#a16207' return '#dc2626' } interface ReliabilityScorePanelProps { score: number compact?: boolean } export function ReliabilityScorePanel({ score, compact = false }: ReliabilityScorePanelProps) { const pct = Math.round(score * 100) const color = scoreColor(score) if (compact) { return ( {pct}% ) } return ( Source Reliability {pct}% ) }