import { Alert, Box, Button, CircularProgress, FormControlLabel, Switch, Typography } from '@mui/material' import { Save } from 'lucide-react' import { NeedCardPreview } from './NeedCardPreview' import type { ParseNeedResult, ParsedNeedCriteria, WeightingKey } from '../../domain/needBuilder' interface Props { criteria: ParsedNeedCriteria weights: Record parseResult: ParseNeedResult needTitle: string overallConfidence: number isSaving: boolean isAnonymous: boolean onNeedTitleChange: (t: string) => void onAnonymousChange: (v: boolean) => void onBack: () => void onSave: () => void } export function AISearchSavePreview({ criteria, weights, parseResult, needTitle, overallConfidence, isSaving, isAnonymous, onNeedTitleChange, onAnonymousChange, onBack, onSave, }: Props) { return ( Dieses Suchprofil wird als aktiver Bedarf gespeichert und erscheint automatisch im Match Center der Verwaltung. {/* Anonymity option */} onAnonymousChange(e.target.checked)} sx={{ '& .MuiSwitch-switchBase.Mui-checked': { color: '#7c3aed' }, '& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': { bgcolor: '#7c3aed' }, }} /> } label={ Anonymes Suchprofil Firmenname wird nicht an Vermieter übermittelt — Verwalter sehen nur Branche und Flächenbedarf } /> ) }