import { createSelector } from 'reselect' ; import IRootState from 'models/IRootState' ; export const isLoadingSelector = createSelector ( ( state ) => state . app , ( app ) => app . isLoading ) ; export const dialogSelector = createSelector ( ( state ) => state . app , ( app ) => app . dialog ) ; export const notificationsSelector = createSelector ( ( state ) => state . app , ( app ) => app . notifications ) ;