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

{translate('ADD_Radio_5')}