import { t } from '@/lib/i18n' export function RecoveryWarning(): React.ReactElement { return (

{t('account.create.recovery.warning.title')}

{t('account.create.recovery.warning.part3')}

) } export function RecoveryPhraseDisplay({ recoveryPhrase, copied, onCopy, }: { recoveryPhrase: string[] copied: boolean onCopy: () => void }): React.ReactElement { const recoveryItems = buildRecoveryPhraseItems(recoveryPhrase) return (
{recoveryItems.map((item, index) => (
{index + 1}. {item.word}
))}
) } function buildRecoveryPhraseItems(recoveryPhrase: string[]): { key: string; word: string }[] { const counts = new Map() return recoveryPhrase.map((word) => { const nextCount = (counts.get(word) ?? 0) + 1 counts.set(word, nextCount) return { key: `${word}-${nextCount}`, word } }) } export function PublicKeyDisplay({ npub }: { npub: string }): React.ReactElement { return (

{t('account.create.publicKey')}

{npub}

) } export function ImportKeyForm({ importKey, setImportKey, error, }: { importKey: string setImportKey: (key: string) => void error: string | null }): React.ReactElement { return ( <>