'use client' import { GlassCard } from './GlassCard' import { ProgressRing } from './ProgressRing' interface PreviewResult { has_handwriting: boolean confidence: number handwriting_ratio: number image_width: number image_height: number estimated_times_ms: { detection: number inpainting: number reconstruction: number total: number } } interface PreviewStepProps { previewResult: PreviewResult previewUrl: string | null maskUrl: string | null removeHandwriting: boolean reconstructLayout: boolean isProcessing: boolean onBack: () => void onCleanup: () => void onGetMask: () => void } export function PreviewStep({ previewResult, previewUrl, maskUrl, removeHandwriting, reconstructLayout, isProcessing, onBack, onCleanup, onGetMask }: PreviewStepProps) { return (

Analyse

{previewResult.has_handwriting ? 'Handschrift erkannt' : 'Keine Handschrift gefunden'}

Geschätzte Zeit

Erkennung ~{Math.round(previewResult.estimated_times_ms.detection / 1000)}s
{removeHandwriting && previewResult.has_handwriting && (
Bereinigung ~{Math.round(previewResult.estimated_times_ms.inpainting / 1000)}s
)} {reconstructLayout && (
Layout ~{Math.round(previewResult.estimated_times_ms.reconstruction / 1000)}s
)}
Gesamt ~{Math.round(previewResult.estimated_times_ms.total / 1000)}s

Bild-Info

Breite{previewResult.image_width}px
Höhe{previewResult.image_height}px
Pixel{(previewResult.image_width * previewResult.image_height / 1000000).toFixed(1)}MP

Original

{previewUrl && Original}
{maskUrl && (

Maske

Mask
)}
) }