@shopgate/engage
Version:
Shopgate's ENGAGE library.
4 lines • 442 B
JavaScript
import{connect}from'react-redux';import{historyPush}from'@shopgate/pwa-common/actions/router/historyPush';/**
* @param {Function} dispatch The redux dispatch function.
* @return {Object} The extended component props.
*/var mapDispatchToProps=function mapDispatchToProps(dispatch){return{openMap:function openMap(url){return dispatch(historyPush({pathname:url,state:{target:'_blank'}}));}};};export default connect(null,mapDispatchToProps);