import { Copy, Download, AlertTriangle } from "lucide-react"; import { ReactNode } from "react"; interface EntityMapping { originalValue: string; anonymizedValue: string; entityType: string; startIndex: number; endIndex: number; } interface ResultPreviewComponentProps { outputText: string; copyToClipboard: () => void; downloadText: () => void; highlightEntities: (text: string, mappings?: EntityMapping[]) => ReactNode; entityMappings?: EntityMapping[]; } export const ResultPreviewComponent = ({ outputText, copyToClipboard, downloadText, highlightEntities, entityMappings, }: ResultPreviewComponentProps) => { if (!outputText) return null; return (

Document anonymisé

{highlightEntities(outputText, entityMappings)}

Vérifiez le résultat pour vous assurer que toutes les informations privées sont supprimées et éviter une divulgation accidentelle.

); };