import { Dispatch } from 'redux' ; import { connect } from 'react-redux' ; import SignUpConfirmForm , { InputParams } from 'components/SignUpConfirmForm' ; import { IRootState } from 'modules' ; import { generateSeed } from '../modules/application/actions' ; import { navigate } from 'modules/navigator/actions' ; import { navTypes } from '../constants' ; const mapStateToProps = ( state ) => { return { seed : state . application . seed } ; } ; const mapDispatchToProps = ( dispatch ) => ( { generateSeed : ( ) => dispatch ( generateSeed ( ) ) , onSubmit : ( params ) => dispatch ( navigate ( navTypes . SIGN_UP_CONFIRM , params ) ) , } ) ; export default connect ( mapStateToProps , mapDispatchToProps ) ( SignUpConfirmForm ) ;