/**
 * 菜单
 * @author bigfact
 * @date 2016.05.23
 */

'use strict';

const initialState = {
  menu: 'menu1',
};

function menu(state = initialState, action) {

  console.log(state);
  console.log(action);

  if (action.type === 'SWITCH_MENU') {
    return {
      ...state, 
      ...action,
    };
  }

  return state;
}

module.exports = menu;
