{"size": 361, "ext": "js", "max_stars_repo_path": "src/containers/Sidebar/reducer.js", "max_stars_repo_name": "iliyat/smdbox", "max_stars_repo_stars_event_min_datetime": "2018-03-02T11:19:13.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-20T18:52:43.000Z", "max_issues_repo_path": "src/containers/Sidebar/reducer.js", "max_issues_repo_name": "iliyat/smdbox", "max_issues_repo_issues_event_min_datetime": "2020-01-08T15:06:27.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T03:40:26.000Z", "max_forks_repo_path": "src/containers/Sidebar/reducer.js", "max_forks_repo_name": "iliyat/smdbox", "max_forks_repo_forks_event_min_datetime": "2019-03-01T11:50:49.000Z", "max_forks_repo_forks_event_max_datetime": "2020-05-26T09:03:34.000Z"}
{"max_stars_count": 24, "max_issues_count": 13, "max_forks_count": 3, "avg_line_length": 19.0, "max_line_length": 70, "alphanum_fraction": 0.6038781163}
import * as ACTION_TYPES from './actionTypes';

const initialState = {
    selected: null
};


export default function sidebarReducer(state = initialState, action) {
    switch (action.type) {
    case ACTION_TYPES.SELECT_SERVICE:
        return {
            ...state,
            selected: action.service
        };
    default:
        return state;
    }
}
