{"size": 307, "ext": "js", "max_stars_repo_path": "Web Frontend/src/reducers/filter.js", "max_stars_repo_name": "ApurvaBiswas5899/WIT-ACE-Call-for-code-Team-Eternals", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Web Frontend/src/reducers/filter.js", "max_issues_repo_name": "ApurvaBiswas5899/WIT-ACE-Call-for-code-Team-Eternals", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Web Frontend/src/reducers/filter.js", "max_forks_repo_name": "ApurvaBiswas5899/WIT-ACE-Call-for-code-Team-Eternals", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.4666666667, "max_line_length": 64, "alphanum_fraction": 0.651465798}
import { FILTER } from "../utils/filter";

const initialState = {
  restaurants: [],
};

export default function user(state = initialState, action) {
  switch (action.type) {
    case FILTER.byCategory:
      return { ...state, restaurants: action.data.restaurants };
    default:
      return state;
  }
}
