import { LOGIN_SUCCESS, LOGIN_FAIL } from "../actions/user";

export const userReducer = (state = {}, action) => {
	switch (action.type) {
		case "SET_USER":
			return (state = action.payload);
		default:
			return state;
	}
};
