text: import * as constants from "./constants";
  import { fromJS } from "immutable";
  const defaultState = fromJS({
    login: false
  });
  
  export default (state = defaultState, action) => {
    switch (action.type) {
      case constants.CHANGE_LOGIN_ACCOUNT:
        return state.set("login", action.login);
      case constants.LOGOUT:
        return state.set("login", false);
      default:
        return state;
    }
  };
  