import { t } from '@/lib/i18n'
export function RecoveryWarning() {
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
}): JSX.Element {
return (
{recoveryPhrase.map((word, index) => (
{index + 1}.
{word}
))}
)
}
export function PublicKeyDisplay({ npub }: { npub: string }): JSX.Element {
return (
{t('account.create.publicKey')}
{npub}
)
}
export function ImportKeyForm({
importKey,
setImportKey,
error,
}: {
importKey: string
setImportKey: (key: string) => void
error: string | null
}): JSX.Element {
return (
<>
{error && {error}
}
>
)
}
export function ImportStepButtons({ loading, onImport, onBack }: { loading: boolean; onImport: () => void; onBack: () => void }): JSX.Element {
return (
)
}
export function ChooseStepButtons({
loading,
onGenerate,
onImport,
onClose,
}: {
loading: boolean
onGenerate: () => void
onImport: () => void
onClose: () => void
}): JSX.Element {
return (
)
}