UNPKG

admin-on-rest-fr05t1k

Version:

A frontend Framework for building admin applications on top of REST services, using ES6, React and Material UI

23 lines (21 loc) 612 B
import { combineReducers } from 'redux'; import resourceReducer from './resource'; import loading from './loading'; import notification from './notification'; import references from './references'; import saving from './saving'; import ui from './ui'; export default (resources) => { const resourceReducers = {}; resources.forEach((resource) => { resourceReducers[resource.name] = resourceReducer(resource.name, resource.options); }); return combineReducers({ ...resourceReducers, loading, notification, references, saving, ui, }); };