2017-06-06 23:19:12 +02:00
|
|
|
import * as types from "constants/action_types";
|
2017-04-24 09:25:27 +02:00
|
|
|
|
2017-06-06 06:21:55 +02:00
|
|
|
const reducers = {};
|
|
|
|
const defaultState = {};
|
2017-04-24 09:25:27 +02:00
|
|
|
|
|
|
|
export default function reducer(state = defaultState, action) {
|
|
|
|
const handler = reducers[action.type];
|
|
|
|
if (handler) return handler(state, action);
|
|
|
|
return state;
|
|
|
|
}
|