@shopgate/engage
Version:
Shopgate's ENGAGE library.
9 lines • 469 B
JavaScript
import{createSelector}from'reselect';/**
* Retrieves the app state from the store.
* @param {Object} state The current application state.
* @return {Object} The locations state.
*/var getState=function getState(state){return state.app;};/**
* Checks if the app webview is currently visible
* @param {Object} state The application state.
* @returns {boolean}
*/export var getIsAppWebViewVisible=createSelector(getState,function(app){return app.webViewVisible;});