import type { WidgetTranslations } from '../i18n'; interface ProcessingViewProps { progress: number; clothingImage?: string; t: WidgetTranslations['processing']; } export function ProcessingView({ progress, clothingImage, t }: ProcessingViewProps) { const displayProgress = Math.min(Math.max(progress, 0), 100); return (
{clothingImage && (
{t.title}
)}

{t.title}

{t.subtitle}

{displayProgress}%
= 0 ? 'active' : ''} ${ progress >= 30 ? 'completed' : '' }`} > {t.step1}
= 30 ? 'active' : ''} ${ progress >= 70 ? 'completed' : '' }`} > {t.step2}
= 70 ? 'active' : ''} ${ progress >= 100 ? 'completed' : '' }`} > {t.step3}
); }