@shopgate/engage
Version:
Shopgate's ENGAGE library.
8 lines • 737 B
JavaScript
import{connect}from'react-redux';import{getFulfillmentSchedulingEnabled}from'@shopgate/engage/core';import setFulfillmentSlot from'@shopgate/pwa-common-commerce/cart/action-creators/setFulfillmentSlot';/**
* Creates the mapStateToProps connector function.
* @returns {Function}
*/var makeMapStateToProps=function makeMapStateToProps(){return function(state){return{isFulfillmentScheduling:getFulfillmentSchedulingEnabled(state)};};};/**
* Maps the contents of the state to the component props.
* @param {Function} dispatch The redux dispatch function.
* @return {Object} The extended component props.
*/var mapDispatchToProps={setFulfillmentSlot:setFulfillmentSlot};export default connect(makeMapStateToProps,mapDispatchToProps);