import { Box, Chip, Paper, Typography } from '@mui/material' import { ArrowLeftRight } from 'lucide-react' import type { Match } from '../../domain/match' const SEVERITY_META: Record = { HIGH: { label: 'Hoch', color: 'error' }, MEDIUM: { label: 'Mittel', color: 'warning' }, LOW: { label: 'Gering', color: 'default' }, } interface Props { match: Match } export function TradeoffPanel({ match }: Props) { const tradeoffs = match.tradeoffs ?? [] if (tradeoffs.length === 0) return null return ( Abwägungen {tradeoffs.map((t, i) => { const meta = SEVERITY_META[t.severity] ?? SEVERITY_META.LOW return ( {t.criterion} {t.concern} {t.mitigation && ( Mitigation: {t.mitigation} )} {t.impactOnScore !== undefined && ( Score-Einfluss: {t.impactOnScore} Punkte )} ) })} ) }