{"size": 354, "ext": "js", "max_stars_repo_path": "src/reducers/data.js", "max_stars_repo_name": "renamsavio/hotel-website", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/reducers/data.js", "max_issues_repo_name": "renamsavio/hotel-website", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/reducers/data.js", "max_forks_repo_name": "renamsavio/hotel-website", "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": 22.125, "max_line_length": 56, "alphanum_fraction": 0.6214689266}
const INITIAL_STATE = {
  data: {}
}

export const data = (state = INITIAL_STATE, action) => {
  switch (action.type) {
    case 'FETCH_HOTEL_DATA':
      return { url: action.url }
    case 'SAVE_JSON_DATA':
      return { data: action.newValue }
    case 'FILTER_HOTEL_DATA':
      return { filter: action.filter }
    default:
      return state
  }
}