'use client' import { GlassCard } from './GlassCard' interface PipelineResult { success: boolean handwriting_detected: boolean handwriting_removed: boolean layout_reconstructed: boolean cleaned_image_base64?: string fabric_json?: any metadata: any } interface ResultStepProps { pipelineResult: PipelineResult previewUrl: string | null cleanedUrl: string | null onReset: () => void onOpenInEditor: () => void } export function ResultStep({ pipelineResult, previewUrl, cleanedUrl, onReset, onOpenInEditor }: ResultStepProps) { return (
{pipelineResult.success ? ( ) : ( )}

{pipelineResult.success ? 'Erfolgreich bereinigt!' : 'Verarbeitung fehlgeschlagen'}

{pipelineResult.handwriting_removed ? `Handschrift wurde entfernt. ${pipelineResult.metadata?.layout?.element_count || 0} Elemente erkannt.` : pipelineResult.handwriting_detected ? 'Handschrift erkannt, aber nicht entfernt' : 'Keine Handschrift im Bild gefunden'}

Original

{previewUrl && Original}

Bereinigt

{cleanedUrl ? ( Cleaned ) : (
Kein Bild
)}
{cleanedUrl && ( Download )} {pipelineResult.layout_reconstructed && pipelineResult.fabric_json && ( )}
) }