{"size": 802, "ext": "js", "max_stars_repo_path": "src/reducers/items.js", "max_stars_repo_name": "MuhammadUzairAhmed/shortList-2.0", "max_stars_repo_stars_event_min_datetime": "2019-09-24T09:16:55.000Z", "max_stars_repo_stars_event_max_datetime": "2019-09-24T09:16:55.000Z", "max_issues_repo_path": "src/reducers/items.js", "max_issues_repo_name": "MuhammadUzairAhmed/shortList-2.0", "max_issues_repo_issues_event_min_datetime": "2021-05-10T15:47:02.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-10T15:47:02.000Z", "max_forks_repo_path": "src/reducers/items.js", "max_forks_repo_name": "MuhammadUzairAhmed/shortList-2.0", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 22.2777777778, "max_line_length": 74, "alphanum_fraction": 0.4837905237}
// DEFAULT STATE 
const defaultGrowLabsStates = {
    NOTIFICATIONS : [],
    BACKLOGS : {},
    FILES : [],
    IS_LOADING : false
}

// LOGIN CONTAINER REDUCER 
export default function itemsData(state = defaultGrowLabsStates, action) {
    switch (action.type){
        case 'NOTIFICATIONS':
        return {
            ...state,
            NOTIFICATIONS : action.NOTIFICATIONS,
         }    
        case 'BACKLOGS':
        return {
            ...state,
            BACKLOGS : action.BACKLOGS,
         }    
        case 'FILES':
        return {
            ...state,
            FILES : action.FILES,
         }   
        
        case 'IS_LOADING':
        return {
            ...state,
            IS_LOADING : action.IS_LOADING,
        } 
        default:
        return state;
    }
}