text: import { CHANGE_ROUTE_LOCATION, CHANGE_ROUTE_STATE } from '../actions/navigation.actions';
  
  const initState = { routeIsPending: true, routeLocation: { pathname: '/' }};
  
  function navigationReducers(state = initState, action) {
    switch (action.type) {
  
      case CHANGE_ROUTE_LOCATION:
        return { ...state, routeLocation: action.routeLocation };
  
      case CHANGE_ROUTE_STATE:
        return { ...state, routeIsPending: action.routeIsPending };
      default:
        return state;
    }
  }
  
  export default navigationReducers;
  