UNPKG

@shopgate/engage

Version:
4 lines 421 B
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);