import { connect } from 'react-redux' ; import { actions } from 'modules/page' ; import RefreshButton from 'components/RefreshButton' ; const mapStateToProps = ( state ) => ( { historyItems : state . application . history , currentItem : state . application . currentPageId , } ) ; const mapDispatchToProps = ( dispatch ) => ( { requestPageStarted : ( pagePayload ) => { dispatch ( actions . requestPage . started ( pagePayload ) ) ; } } ) ; export default connect ( mapStateToProps , mapDispatchToProps ) ( RefreshButton ) ;