/**
 * data reducer
 */
import * as reducers from "./reducers"
import reducerFromMap from "@racletteCore/lib/reducerFromMap"
const reducerMap = {
  init: reducers.init,
  projectInit: reducers.projectInit,
  "data/push": reducers.dataRead,
  "data/create": reducers.dataCreate,
  "data/update": reducers.dataUpdate,
  "data/deleteFromCache": reducers.deleteFromCache,
  "data/update/add/requestedFor": reducers.addRequestedFor,
  "data/delete": reducers.dataDelete,
  "data/hardDelete": reducers.dataHardDelete,
  "data/addFromClient": reducers.dataAddFromClient,
  "data/addFromServer": reducers.dataAddFromServer,
  "data/move": reducers.dataMove,
}

const dataReducers = reducerFromMap(reducerMap)

export { dataReducers }
