{"size": 440, "ext": "js", "max_stars_repo_path": "Client/src/reducers/TotalDuration/totalDurationReducer.js", "max_stars_repo_name": "BibhushanKarki/GlowLabs", "max_stars_repo_stars_event_min_datetime": "2021-01-17T15:43:32.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-19T19:33:00.000Z", "max_issues_repo_path": "Client/src/reducers/TotalDuration/totalDurationReducer.js", "max_issues_repo_name": "brendantay/GlowLabs", "max_issues_repo_issues_event_min_datetime": "2020-08-09T03:41:06.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-30T14:11:23.000Z", "max_forks_repo_path": "Client/src/reducers/TotalDuration/totalDurationReducer.js", "max_forks_repo_name": "brendantay/GlowLabs", "max_forks_repo_forks_event_min_datetime": "2021-02-18T19:29:22.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T13:16:17.000Z"}
{"max_stars_count": 47, "max_issues_count": 42, "max_forks_count": 26, "avg_line_length": 27.5, "max_line_length": 73, "alphanum_fraction": 0.6772727273}
const TOTAL_DURATION = "TOTAL_DURATION";
const TOTAL_DURATION_RESET = "TOTAL_DURATION_RESET";

const totalDurationReducer = (state = { totalDuration: "" }, action) => {
  switch (action.type) {
    case TOTAL_DURATION:
      return { ...state, totalDuration: action.duration };
    case TOTAL_DURATION_RESET:
      return { ...state, totalDuration: "" };
    default:
      return { ...state };
  }
};

export default totalDurationReducer;
