@shopgate/engage
Version:
Shopgate's ENGAGE library.
8 lines • 533 B
JavaScript
import{connect}from'react-redux';import{makeGetMaximumRelatedProducts}from'@shopgate/engage/product';/**
* Creates the mapStateToProps connector function.
* @returns {Function}
*/function makeMapStateToProps(){var getMaximumRelatedProducts=makeGetMaximumRelatedProducts();/**
* @param {Object} state The application state.
* @param {Object} props The component props.
* @returns {Object}
*/return function(state,props){return{products:getMaximumRelatedProducts(state,props)};};}export default connect(makeMapStateToProps);