UNPKG

@shopgate/engage

Version:
4 lines 544 B
import{connect}from'react-redux';import{makeGetMenu,makeGetIsFetchingMenu}from'@shopgate/engage/core';import{QUICKLINKS_MENU}from'@shopgate/pwa-common/constants/MenuIDs';/** * Creates the mapStateToProps connector function. * @returns {Function} */var makeMapStateToProps=function makeMapStateToProps(){var getMenu=makeGetMenu(QUICKLINKS_MENU);var getIsFetchingMenu=makeGetIsFetchingMenu(QUICKLINKS_MENU);return function(state){return{links:getMenu(state),isFetching:getIsFetchingMenu(state)};};};export default connect(makeMapStateToProps);