{"size": 464, "ext": "js", "max_stars_repo_path": "frontend/src/reducers/error.js", "max_stars_repo_name": "joshibhaumik/Notes", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "frontend/src/reducers/error.js", "max_issues_repo_name": "joshibhaumik/Notes", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "frontend/src/reducers/error.js", "max_forks_repo_name": "joshibhaumik/Notes", "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": 18.56, "max_line_length": 46, "alphanum_fraction": 0.4504310345}
import {
    IS_LOADED,
    IS_LOADING
} from "../actions/types";

const init = {
    isLoading: false
}

export default function (state=init, action) {
    switch (action.type) {
        case IS_LOADING:
            return {
                ...state,
                isLoading: true
            }
        case IS_LOADED:
            return {
                ...state,
                isLoading: true
            }
        default:
            return state
    }
}