import { Box, Chip, Typography } from '@mui/material' import type { SuggestedQuestion } from '../../domain/assistant' interface Props { suggestions: SuggestedQuestion[] onSelect: (question: string) => void disabled?: boolean } const CATEGORY_COLORS: Record = { Match: '#4f46e5', Datenqualität: '#d97706', Priorisierung: '#1e3a5f', Empfehlung: '#1a7a4a', Risiko: '#c0392b', Tradeoffs: '#ea580c', Strategie: '#0891b2', Analyse: '#7c3aed', Erklärung: '#0891b2', Evidenz: '#64748b', Review: '#7c3aed', Konfidenz: '#d97706', Fehler: '#c0392b', Fehleranalyse: '#ea580c', Eskalation: '#ea580c', Prozess: '#64748b', Kosten: '#1a7a4a', Impact: '#d97706', Optimierung: '#1a7a4a', Aktion: '#1e3a5f', Überblick: '#64748b', Ranking: '#4f46e5', } export function AssistantPromptSuggestions({ suggestions, onSelect, disabled }: Props) { if (suggestions.length === 0) return null return ( Vorschläge {suggestions.map(s => { const catColor = CATEGORY_COLORS[s.category] ?? '#64748b' return ( !disabled && onSelect(s.question)} sx={{ px: 1.25, py: 0.875, borderRadius: 1.5, border: '1px solid #e2e8f0', cursor: disabled ? 'default' : 'pointer', bgcolor: 'white', opacity: disabled ? 0.5 : 1, '&:hover': disabled ? {} : { bgcolor: '#f8fafc', borderColor: '#cbd5e1' }, transition: 'all 0.1s ease', display: 'flex', alignItems: 'center', gap: 1, }} > {s.question} ) })} ) }