{"size": 342, "ext": "js", "max_stars_repo_path": "imports/controller/reducers/recipeDetailedViewReducer.js", "max_stars_repo_name": "kilowatt-/thegoodcookbook", "max_stars_repo_stars_event_min_datetime": "2019-05-22T04:38:35.000Z", "max_stars_repo_stars_event_max_datetime": "2019-05-22T04:38:35.000Z", "max_issues_repo_path": "imports/controller/reducers/recipeDetailedViewReducer.js", "max_issues_repo_name": "kilowatt-/thegoodcookbook", "max_issues_repo_issues_event_min_datetime": "2019-05-25T21:23:03.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-01T18:36:11.000Z", "max_forks_repo_path": "imports/controller/reducers/recipeDetailedViewReducer.js", "max_forks_repo_name": "kilowatt-/thegoodcookbook", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 17, "max_forks_count": null, "avg_line_length": 31.0909090909, "max_line_length": 82, "alphanum_fraction": 0.6520467836}
import {CLOSE_DETAILED_VIEW, OPEN_DETAILED_VIEW} from "../actions/detailedView.js"

export const recipeDetailedViewReducer = (isOpen = false, action) => {
    if (action.type === OPEN_DETAILED_VIEW) {
        return true;
    } else if (action.type === CLOSE_DETAILED_VIEW) {
        return false;
    } else {
        return isOpen;
    }
};