'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 (