import { Box, Typography } from '@mui/material' import { ArrowLeftRight } from 'lucide-react' import type { TradeOff } from '../../domain/match' function severityColor(severity: TradeOff['severity']): string { if (severity === 'HIGH') return '#d97706' if (severity === 'MEDIUM') return '#92400e' return '#64748b' } interface Props { tradeoffs: TradeOff[] maxItems?: number compact?: boolean } export function TradeoffList({ tradeoffs, maxItems = 3, compact }: Props) { if (tradeoffs.length === 0) return null const shown = tradeoffs.slice(0, maxItems) return ( Abwägungen {shown.map((t, i) => ( {compact ? ( {t.concern} ) : ( <> {t.criterion} {t.concern} {t.mitigation && ( → {t.mitigation} )} )} ))} ) }