import produce from "immer";
import { LOGIN_SUCCESS } from "./actions.js";
const initialState = {
  authenticated: false
};
const authReducer = produce(
  (draft, action) => {
    switch (action.type) {
      case LOGIN_SUCCESS:
        draft.authenticated = true;
        break;
    }
  },
  initialState
);
export {
  authReducer,
  initialState
};
