{"size": 344, "ext": "js", "max_stars_repo_path": "reducers/tabName.js", "max_stars_repo_name": "katyperrycbt/vip-mui", "max_stars_repo_stars_event_min_datetime": "2022-02-25T02:59:49.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-25T02:59:49.000Z", "max_issues_repo_path": "reducers/tabName.js", "max_issues_repo_name": "katyperrycbt/vip-mui", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "reducers/tabName.js", "max_forks_repo_name": "katyperrycbt/vip-mui", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.9333333333, "max_line_length": 65, "alphanum_fraction": 0.5610465116}
import * as t from "@consts";

const tabName = (state = "Dashboard", action) => {
    switch (action.type) {
        case t.SET_TAB_NAME:
            return action?.payload ? `${action.payload}` : state;
        case t.RESET_TAB_NAME:
            return "Dashboard";
        default:
            return state;
    }
};

export default tabName;
