import { useState } from 'react' import { RecoveryWarning, RecoveryPhraseDisplay, PublicKeyDisplay, ImportKeyForm, ImportStepButtons, ChooseStepButtons } from './CreateAccountModalComponents' import { t } from '@/lib/i18n' export function RecoveryStep({ recoveryPhrase, npub, onContinue, }: { recoveryPhrase: string[] npub: string onContinue: () => void }) { const [copied, setCopied] = useState(false) const handleCopy = async () => { if (recoveryPhrase.length > 0) { await navigator.clipboard.writeText(recoveryPhrase.join(' ')) setCopied(true) setTimeout(() => setCopied(false), 2000) } } return (
{t('account.create.description')}
{error &&{error}
}