{"size": 508, "ext": "js", "max_stars_repo_path": "src/main/webapp/store/reducers/saveModalReducer.js", "max_stars_repo_name": "markcardamis/PropertyFinder", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/main/webapp/store/reducers/saveModalReducer.js", "max_issues_repo_name": "markcardamis/PropertyFinder", "max_issues_repo_issues_event_min_datetime": "2020-03-25T00:14:21.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-12T13:09:46.000Z", "max_forks_repo_path": "src/main/webapp/store/reducers/saveModalReducer.js", "max_forks_repo_name": "markcardamis/PropertyFinder", "max_forks_repo_forks_event_min_datetime": "2019-10-31T18:30:48.000Z", "max_forks_repo_forks_event_max_datetime": "2019-10-31T18:30:48.000Z"}
{"max_stars_count": null, "max_issues_count": 19, "max_forks_count": 1, "avg_line_length": 33.8666666667, "max_line_length": 88, "alphanum_fraction": 0.6003937008}
const initialState = { showModal: false };
const saveModalReducer = (state = initialState, action) => {
    switch (action.type) {
        case "SHOW_SAVE_MODAL":
            return { ...state, showModal: true };
        case "CLOSE_SAVE_MODAL": 
            return { ...state, showModal: false };
        case "SAVE_NOTIFICATION": 
            return { name: action.name, frequency: action.frequency, showModal: false };
        default: 
            return state;
    }
};

export default saveModalReducer;