import { useState } from 'react' import { RecoveryWarning, RecoveryPhraseDisplay, PublicKeyDisplay, ImportKeyForm, ImportStepButtons, ChooseStepButtons } from './CreateAccountModalComponents' 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 (

Sauvegardez vos mots-clés de récupération

) } export function ImportStep({ importKey, setImportKey, loading, error, onImport, onBack, }: { importKey: string setImportKey: (key: string) => void loading: boolean error: string | null onImport: () => void onBack: () => void }) { return (

Importer une clé privée

) } export function ChooseStep({ loading, error, onGenerate, onImport, onClose, }: { loading: boolean error: string | null onGenerate: () => void onImport: () => void onClose: () => void }) { return (

Créer un compte

Créez un nouveau compte Nostr ou importez une clé privée existante.

{error &&

{error}

}
) }