{"size": 868, "ext": "js", "max_stars_repo_path": "Client/src/components/availability/AvailabilityRouter.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/components/availability/AvailabilityRouter.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/components/availability/AvailabilityRouter.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": 24.8, "max_line_length": 55, "alphanum_fraction": 0.5794930876}
import React from "react";
import Availability from "./Date/Availability";
import TimePreference from "./Time/TimePreference";
import { Switch, Route } from "react-router-dom";

const AvailabilityRouter = (props) => {
  return (
    <Switch>
      <Route
        exact
        path={props.path}
        render={() => (
          <Availability
            initialScreenSize={props.initialScreenSize}
            currentScreenSize={props.currentScreenSize}
            getEmployeesData={props.getEmployeesData}
          />
        )}
      />
      <Route
        exact
        path={props.path + "/timepreference"}
        render={() => (
          <TimePreference
            initialScreenSize={props.initialScreenSize}
            currentScreenSize={props.currentScreenSize}
          />
        )}
      />
    </Switch>
  );
};

export default AvailabilityRouter;
