import { AlertTriangle, Camera, ImagePlus, RotateCcw } from 'lucide-react' import { ASSETS } from '../lib/assets' import { t } from '../lib/i18n' import type { Lang } from '../lib/types' type Engine = 'checking' | 'local' | 'server' | 'none' interface Props { lang: Lang engine: Engine modelError?: string onRetryModel?: () => void onCamera: () => void onGallery: () => void } export function StepCapture({ lang, engine, modelError, onRetryModel, onCamera, onGallery }: Props) { const hasError = engine === 'none' || Boolean(modelError) const ready = engine === 'local' || engine === 'server' return (
{/* Logo + live status dot — staggered entrance */}
{/* Title block */}

{t(lang, 'title')}

{t(lang, 'captureSubtitle')}

{/* Status badge / retry — premium glass treatment */} {hasError ? ( ) : (
{ready ? t(lang, 'modelReady') : t(lang, 'loadingModel')}
)}
{hasError && (

{t(lang, 'modelErrorTitle')}

{modelError}

)} {/* CTA column — staggered last */}
) }