import * as types from 'app/types' import { crudState, crudReducer } from 'app/api/crud.reducer' const initialState = crudState('annotation', { options: { sort: 'start_ts asc', } }) const reducer = crudReducer('annotation') export default function annotationReducer(state = initialState, action) { // console.log(action.type, action) state = reducer(state, action) switch (action.type) { default: return state } }