import { Box, Button, Paper, Typography } from '@mui/material' import { MessageSquare } from 'lucide-react' import type { Match, NextBestAction } from '../../domain/match' const PRIORITY_ORDER: Record = { HIGH: 0, MEDIUM: 1, LOW: 2 } interface Props { match: Match onCompare?: () => void onPipeline?: () => void onInquire?: () => void } export function NextActionsPanel({ match, onCompare, onPipeline, onInquire }: Props) { const engineActions: NextBestAction[] = [...(match.nextBestActions ?? [])].sort( (a, b) => (PRIORITY_ORDER[a.priority] ?? 2) - (PRIORITY_ORDER[b.priority] ?? 2) ) return ( Empfohlene Aktionen {onInquire && ( )} {engineActions.length > 0 && engineActions.map((action, i) => ( {action.description && ( {action.description} )} ))} {onPipeline && ( )} {onCompare && ( )} ) }