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