import { Box, Button, Typography } from '@mui/material' import { ArrowRight } from 'lucide-react' import { useNavigate } from 'react-router' import type { AssistantAction } from '../../domain/assistant' interface Props { actions: AssistantAction[] onExecute?: (action: AssistantAction) => void } const ACTION_COLORS: Record = { NAVIGATE: '#1e3a5f', OPEN_REVIEW: '#7c3aed', ADD_TO_SHORTLIST: '#1a7a4a', REQUEST_DATA: '#d97706', SEND_TO_REVIEW: '#ea580c', } export function AssistantActionCards({ actions, onExecute }: Props) { const navigate = useNavigate() const handleExecute = (action: AssistantAction) => { if (action.actionType === 'NAVIGATE' && action.payload?.path) { navigate(action.payload.path as string) } else if (action.actionType === 'OPEN_REVIEW') { navigate('/ops/review-queue') } onExecute?.(action) } if (!actions.length) return null return ( Vorgeschlagene Aktionen {actions.map(action => { const color = ACTION_COLORS[action.actionType] ?? '#64748b' return ( {action.label} {action.description} ) })} ) }