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

{translate('ADD_Radio_5')}