{"size": 622, "ext": "js", "max_stars_repo_path": "frontend/src/reducers/rootReducer.js", "max_stars_repo_name": "Werton25/builder", "max_stars_repo_stars_event_min_datetime": "2018-04-19T09:10:59.000Z", "max_stars_repo_stars_event_max_datetime": "2018-04-19T09:10:59.000Z", "max_issues_repo_path": "frontend/src/reducers/rootReducer.js", "max_issues_repo_name": "Werton25/builder", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "frontend/src/reducers/rootReducer.js", "max_forks_repo_name": "Werton25/builder", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.037037037, "max_line_length": 56, "alphanum_fraction": 0.6816720257}
import requests from "./requests";
import tabs from "./tabs";
import editor from "./editor";
import select from './select';
import modal from "./modal";
import loader from "./loader";
import {reducer as toastr} from 'react-redux-toastr';
import {RESET_LOCAL_STORAGE} from "../actions/requests";
import {combineReducers} from 'redux';

export default (state, action) => {
  if (action.type === RESET_LOCAL_STORAGE) {
    state = undefined;
  }
  const combinedReducers = combineReducers({
    requests,
    tabs,
    select,
    editor,
    modal,
    loader,
    toastr
  });

  return combinedReducers(state, action);
};
