@shopgate/engage
Version:
Shopgate's ENGAGE library.
4 lines • 482 B
JavaScript
import{connect}from'react-redux';import{makeGetShopSettingByKey,SHOP_SETTING_ORDER_SUPPLEMENTAL_CONTENT}from'@shopgate/engage/core';/**
* Creates the mapStateToProps connector function.
* @returns {Function}
*/var makeMapStateToProps=function makeMapStateToProps(){var getShopSettingsByKey=makeGetShopSettingByKey(SHOP_SETTING_ORDER_SUPPLEMENTAL_CONTENT);return function(state,props){return{text:getShopSettingsByKey(state,props)};};};export default connect(makeMapStateToProps);