You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
521 B

import React from 'react'
import PropTypes from 'prop-types'
import Login from './Login'
import Signup from './Signup'
import styles from './InitWallet.scss'
const InitWallet = ({ hasSeed, loginProps, signupProps }) => (
<div className={styles.container}>
{hasSeed ? <Login {...loginProps} /> : <Signup {...signupProps} />}
</div>
)
InitWallet.propTypes = {
hasSeed: PropTypes.bool.isRequired,
loginProps: PropTypes.object.isRequired,
signupProps: PropTypes.object.isRequired
}
export default InitWallet