text: const defaultState = {
    user: null
  };
  
  export default (state = defaultState, action) => {
    switch (action.type) {
      case "CURRENT_USER":
        return { ...state, user: action.payload };
      default:
        return state;
    }
  };