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 (

Translation Output

Translated English text with confidence score

{error ? (
Error
{error}
) : isComplete && prediction ? (
"{prediction.label}"
Translation complete
) : currentStep >= 3 ? (
Translation in progress...
Processing through Transformer model
) : (
Translation will appear here
Start processing to see results
)}
Accuracy Score
{prediction ? `${confidencePercent}%` : '--%'}
Confidence Level
{confidenceLevel}
Processing Time
{processingTime}
); }