import { createSelector } from "reselect" ; import IStoreState from "../store/IStoreState" ; const pendingActionsSelector = ( state ) => state . pendingActions ; export const isBusy = createSelector ( [ pendingActionsSelector ] , pendingActions => pendingActions > 0 ) ;