'use client'; import { useTranslation } from '../../../i18n/useTranslation'; import type { LanguageEntry } from '../hooks/useLanguageManagementTranslations'; import { useModalAnimation } from '../hooks/useModalAnimation'; type Props = { isOpen: boolean; currentWizardKey: string | null; wizardIndex: number; wizardMissingCount: number; activeLang: string; allLanguages: LanguageEntry[]; wizardInput: string; setWizardInput: (value: string) => void; wizardMarkGlobal: boolean; setWizardMarkGlobal: (value: boolean) => void; wizardUseEnglishReference: boolean; setWizardUseEnglishReference: (value: boolean) => void; englishValue: string; addGlobalKey: (key: string) => void; removeGlobalKey: (key: string) => void; onClose: () => void; onPrevious: () => void; onSkip: () => void; onNext: () => void | Promise; isSavingStep?: boolean; }; export default function TranslationWizardModal({ isOpen, currentWizardKey, wizardIndex, wizardMissingCount, activeLang, allLanguages, wizardInput, setWizardInput, wizardMarkGlobal, setWizardMarkGlobal, wizardUseEnglishReference, setWizardUseEnglishReference, englishValue, addGlobalKey, removeGlobalKey, onClose, onPrevious, onSkip, onNext, isSavingStep = false, }: Props) { const { t } = useTranslation(); const { isRendered, isVisible } = useModalAnimation(isOpen && Boolean(currentWizardKey)); if (!isRendered || !currentWizardKey) return null; return (

{t('autofix.kcd190bdd')}

Step {wizardIndex + 1} of {wizardMissingCount} for {allLanguages.find((l) => l.code === activeLang)?.name ?? activeLang}

Key

{currentWizardKey}

{t('autofix.kc518ff5c')}

{englishValue}