import { combineReducers } from 'redux' ; import resources , { getResources as resourceGetResources , getReferenceResource as resourceGetReferenceResource , } from './resource' ; import loading from './loading' ; import notifications from './notifications' ; import references , { getPossibleReferenceValues as referencesGetPossibleReferenceValues , } from './references' ; import ui from './ui' ; import customQueries from './customQueries' ; const defaultReducer = ( ) => null ; export default combineReducers ( { see https resources : resources || defaultReducer , customQueries : customQueries || defaultReducer , loading : loading || defaultReducer , notifications : notifications || defaultReducer , references : references || defaultReducer , ui : ui || defaultReducer , } ) ; export const getPossibleReferenceValues = ( state , props ) => referencesGetPossibleReferenceValues ( state . references , props ) ; export const getResources = state => resourceGetResources ( state . resources ) ; export const getReferenceResource = ( state , props ) => { return resourceGetReferenceResource ( state . resources , props ) ; } ; export { getPossibleReferences } from './references' ;