text: import { UPDATE_MEAL_SUGGESTIONS } from '../actionTypes';
  
  const initialState = {
    mealSuggestionList: [],
  };
  
  export function mealSuggestionsReducer(state = initialState, action) {
    switch (action.type) {
      case UPDATE_MEAL_SUGGESTIONS: {
        const { newMealSuggestions } = action.payload;
        const newMealSuggestionList = newMealSuggestions.concat(state.mealSuggestionList);
  
        return {
          ...state,
          mealSuggestionList: newMealSuggestionList.slice(0,10)
        };
      }
      default:
        return state;
    }
  }
  