import { Dispatch } from 'redux' ; import { connect } from 'react-redux' ; import SignUpForm , { InputParams } from 'components/SignUpForm' ; import { IRootState } from 'modules' ; import { createAccount , changePassword , cancelChangingPassword , confirmChangingPassword } from 'modules/account/actions' ; const mapStateToProps = ( state ) => { return { seed : state . application . seed } ; } ; const mapDispatchToProps = ( dispatch ) => ( { onSubmit : ( params ) => dispatch ( createAccount . started ( params ) ) , onChangePassword : ( password ) => dispatch ( confirmChangingPassword ( password ) ) , onCancelChangingPassword : ( ) => dispatch ( cancelChangingPassword ( ) ) } ) ; export default connect ( mapStateToProps , mapDispatchToProps ) ( SignUpForm ) ;