@shopgate/engage
Version:
Shopgate's ENGAGE library.
4 lines • 421 B
JavaScript
import{connect}from'react-redux';import{makeGetLocation}from'@shopgate/engage/locations';/**
* Creates the mapStateToProps connector function.
* @returns {Function}
*/var makeMapStateToProps=function makeMapStateToProps(){var getLocation=makeGetLocation(function(_,props){return props.locationId;});return function(state,props){return{location:getLocation(state,props)};};};export default connect(makeMapStateToProps);