@shopgate/engage
Version:
Shopgate's ENGAGE library.
16 lines (15 loc) • 439 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.
*/
const mapDispatchToProps = dispatch => ({
openMap: url => dispatch(historyPush({
pathname: url,
state: {
target: '_blank'
}
}))
});
export default connect(null, mapDispatchToProps);