import React, { Component } from 'react' import PropTypes from 'prop-types' import {connect} from 'react-redux' import classnames from 'classnames' import shuffle from 'lodash.shuffle' import {compose, onlyUpdateForPropTypes} from 'recompose' import Identicon from '../../../../ui/app/components/identicon' import {confirmSeedWords} from '../../../../ui/app/actions' import Breadcrumbs from './breadcrumbs' import LoadingScreen from './loading-screen' const LockIcon = props => ( ); class BackupPhraseScreen extends Component { static propTypes = { isLoading: PropTypes.bool.isRequired, address: PropTypes.string.isRequired, seedWords: PropTypes.string.isRequired, next: PropTypes.func.isRequired, confirmSeedWords: PropTypes.func.isRequired, }; static defaultProps = { seedWords: '' }; static PAGE = { SECRET: 'secret', CONFIRM: 'confirm' }; constructor(props) { const {seedWords} = props super(props) this.state = { isShowingSecret: false, page: BackupPhraseScreen.PAGE.SECRET, selectedSeeds: [], shuffledSeeds: seedWords && shuffle(seedWords.split(' ')), } } renderSecretWordsContainer () { const { isShowingSecret } = this.state return (