import { useState } from 'react' import type { UnlockAccountModalProps } from './types' import { UnlockAccountButtons } from './UnlockAccountButtons' import { UnlockAccountForm } from './UnlockAccountForm' import { useUnlockAccountController } from './useUnlockAccountController' export function UnlockAccountModal(params: UnlockAccountModalProps): React.ReactElement { const [words, setWords] = useState(['', '', '', '']) const [loading, setLoading] = useState(false) const [error, setError] = useState(null) const controller = useUnlockAccountController({ words, setWords, setLoading, setError, onSuccess: params.onSuccess, onClose: params.onClose, }) return (

Déverrouiller votre compte

Entrez vos 4 mots-clés de récupération (dictionnaire BIP39) pour déverrouiller votre compte. Ces mots déchiffrent la clé de chiffrement (KEK) stockée dans l'API Credentials, qui déchiffre ensuite votre clé privée.

{error ?

{error}

: null}
) }