import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import { Redirect } from 'react-router-dom' import { DEFAULT_ROUTE, LOCK_ROUTE, INITIALIZE_WELCOME_ROUTE, INITIALIZE_NOTICE_ROUTE, INITIALIZE_UNLOCK_ROUTE, INITIALIZE_SEED_PHRASE_ROUTE, } from '../../../../routes' export default class FirstTimeFlowSwitch extends PureComponent { static propTypes = { completedOnboarding: PropTypes.bool, isInitialized: PropTypes.bool, isUnlocked: PropTypes.bool, noActiveNotices: PropTypes.bool, seedPhrase: PropTypes.string, } render () { const { completedOnboarding, isInitialized, isUnlocked, noActiveNotices, seedPhrase, } = this.props if (completedOnboarding) { return } if (isUnlocked && !seedPhrase) { return } if (!isInitialized) { return } if (!isUnlocked) { return } if (!noActiveNotices) { return } if (seedPhrase) { return } return } }