import { connect } from 'react-redux' ; import RemoveAccountButton from 'components/RemoveAccountButton' ; import { removeAccount } from 'modules/account/actions' ; const mapStateToProps = ( state , ownProps ) => { return { buttonWidth : ownProps . buttonWidth , recenter : ownProps . recenter , } ; } ; const mapDispatchToProps = ( dispatch , ownProps ) => { return { onRemove : ( ) => dispatch ( removeAccount . started ( { uniqKey : ownProps . uniqKey } ) ) , } ; } ; export default connect ( undefined , mapDispatchToProps ) ( RemoveAccountButton ) ;