import * as types from 'app/types' import { session, getDefault, getDefaultInt } from 'app/session' import { crudState, crudReducer } from 'app/api/crud.reducer' const initialState = crudState('media', { options: { sort: 'author asc', thumbnailSize: getDefault('upload.thumbnailSize', 'small'), } }) const reducer = crudReducer('media') export default function mediaReducer(state = initialState, action) { // console.log(action.type, action) state = reducer(state, action) switch (action.type) { default: return state } }