import { Box, Paper, Typography } from '@mui/material' import { CheckCircle2, AlertTriangle, ArrowRight, Target } from 'lucide-react' import type { Match } from '../../domain/match' interface Props { match: Match } export function ExecutiveSummaryPanel({ match }: Props) { const topReason = match.positiveFactors[0] const topTradeoff = match.tradeoffs?.[0] const nextStep = match.nextBestActions?.[0] const rows: { icon: React.ReactNode; label: string; text: string }[] = [ { icon: , label: 'Gesamteignung', text: match.explainabilitySummary || `${match.matchStrength}-Match mit ${match.matchScore} Punkten`, }, ...(topReason ? [{ icon: , label: 'Stärkster Grund', text: topReason.explanation, }] : []), ...(topTradeoff ? [{ icon: , label: 'Hauptabwägung', text: topTradeoff.concern, }] : []), ...(nextStep ? [{ icon: , label: 'Empfohlener nächster Schritt', text: nextStep.description ?? nextStep.label, }] : []), ] return ( Executive Summary {rows.map((row, i) => ( {row.icon} {row.label} {row.text} ))} ) }