@shopgate/engage
Version:
Shopgate's ENGAGE library.
8 lines • 441 B
JavaScript
import{createSelector}from'reselect';/**
* Retrieves the a11y state from the store.
* @param {Object} state The current application state.
* @return {Object} The a11y state.
*/var getState=function getState(state){return state.a11y;};/**
* Creates a selector that returns the number of currently open modals.
* @type {(state: any) => number}
*/export var getModalCount=createSelector(getState,function(a11y){return a11y.modalCount;});