import React, { Component } from 'react'; import translate, { translateRaw } from 'translations'; import { validateMnemonic, mnemonicToSeed } from 'bip39'; import DeterministicWalletsModal from './DeterministicWalletsModal'; import DPATHS from 'config/dpaths.js'; const DEFAULT_PATH = DPATHS.MNEMONIC[0].value; type State = { phrase: string, pass: string, seed: string, dPath: string }; export default class MnemonicDecrypt extends Component { props: { onUnlock: any => void }; state: State = { phrase: '', pass: '', seed: '', dPath: DEFAULT_PATH }; render() { const { phrase, seed, dPath, pass } = this.state; const isValidMnemonic = validateMnemonic(phrase); return (

{translate('ADD_Radio_5')}