import { AppState } from '../index' ; import { connect } from 'react-redux' ; import { TransactionSeller } from '../components/TransactionSeller' ; import { postShippedDoneAction } from '../actions/postShippedDoneAction' ; import { ThunkDispatch } from 'redux-thunk' ; import { postShippedAction } from '../actions/postShippedAction' ; import { ActionTypes } from '../actions/actionTypes' ; const mapStateToProps = ( state ) => ( { } ) ; const mapDispatchToProps = ( dispatch ) => ( { postShipped : ( itemId ) => { dispatch ( postShippedAction ( itemId ) ) ; } , postShippedDone : ( itemId ) => { dispatch ( postShippedDoneAction ( itemId ) ) ; } , } ) ; export default connect ( mapStateToProps , mapDispatchToProps ) ( TransactionSeller ) ;