/* eslint-disable react/no-multi-comp */ import React from 'react' import PropTypes from 'prop-types' import { FormattedMessage, injectIntl } from 'react-intl' import bip39 from 'bip39-en' import { Flex } from 'rebass' import { Bar, Form, Header, Input, Label } from 'components/UI' import messages from './messages' class SeedWord extends React.Component { static propTypes = { index: PropTypes.number.isRequired, intl: PropTypes.object.isRequired, word: PropTypes.string } validateWord = value => { return !value || !bip39.includes(value) ? 'incorrect' : null } render() { const { index, intl, word } = this.props return ( ) } } const SeedWordWithIntl = injectIntl(SeedWord) class SeedView extends React.Component { static propTypes = { wizardApi: PropTypes.object, wizardState: PropTypes.object, seed: PropTypes.array.isRequired } static defaultProps = { wizardApi: {}, wizardState: {} } render() { const { wizardApi, wizardState, seed, intl, ...rest } = this.props const { getApi, preSubmit, onSubmit, onSubmitFailure } = wizardApi const indexes = Array.from(Array(24).keys()) return (
} subtitle={} align="left" /> {indexes.slice(0, 6).map(word => ( ))} {indexes.slice(6, 12).map(word => ( ))} {indexes.slice(12, 18).map(word => ( ))} {indexes.slice(18, 24).map(word => ( ))} ) } } export default injectIntl(SeedView)