import { Box, LinearProgress, Typography } from '@mui/material' import { matchScoreColor } from '../../lib/utils' const COLOR_MAP: Record = { success: '#1a7a4a', warning: '#d97706', error: '#c0392b', } interface ScoreBarProps { label: string value: number weight?: number color?: string maxWidth?: number } export function ScoreBar({ label, value, weight, color, maxWidth = 200 }: ScoreBarProps) { const resolved = color ?? COLOR_MAP[matchScoreColor(value)] ?? '#152642' return ( {label} {value} {weight !== undefined && ( Gewicht: {Math.round(weight * 100)}% )} ) }