import { Copy, Info, MessageSquareText, Play, RotateCcw, Save } from 'lucide-react'; interface TranslationOutputProps { currentStep: number; isProcessing: boolean; onStartTranslation: () => void; onReset: () => void; onCopy: () => void; onSaveResult: () => void; canStart: boolean; prediction: { label: string; score: number; elapsed_ms: number; } | null; hasSavedCurrent: boolean; error: string | null; } export function TranslationOutput({ currentStep, isProcessing, onStartTranslation, onReset, onCopy, onSaveResult, canStart, prediction, hasSavedCurrent, error, }: TranslationOutputProps) { const isComplete = Boolean(prediction) && !isProcessing; const confidencePercent = prediction ? (prediction.score * 100).toFixed(1) : '--'; const confidenceLevel = prediction ? prediction.score >= 0.85 ? 'High' : prediction.score >= 0.6 ? 'Medium' : 'Low' : '--'; const processingTime = prediction ? `${(prediction.elapsed_ms / 1000).toFixed(2)}s` : '--s'; return (
Translated English text with confidence score