import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread";
import { handleActions } from 'redux-actions';
import * as C from './constants';
export var initialState = {
  routes: [],
  hash: '/',
  contactLink: '/help'
};
export var routingReducer = function routingReducer(state, action) {
  return _objectSpread({}, state, action.payload);
};
export default handleActions(_defineProperty({}, C.UPDATE_ROUTING, function (state, action) {
  return _objectSpread({}, state, action.payload);
}), initialState);