{"size": 977, "ext": "js", "max_stars_repo_path": "src/components/website/FrontEndRouter.js", "max_stars_repo_name": "Imtiajrex/school_frontend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/website/FrontEndRouter.js", "max_issues_repo_name": "Imtiajrex/school_frontend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/website/FrontEndRouter.js", "max_forks_repo_name": "Imtiajrex/school_frontend", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.1388888889, "max_line_length": 57, "alphanum_fraction": 0.5312180143}
import React from "react";
import { Route, Switch } from "react-router-dom";
import Home from "./Home";
import Albums from "./Albums";
import Pages from "./Pages";
import SubPages from "./SubPages";
import Employees from "./Employees";
import { Helmet } from "react-helmet";

export default function FrontEndRouter({ data }) {
  return (
    <>
      <Helmet>
        <title>{data.school_info.institute_name}</title>
      </Helmet>
      <Switch>
        <Route exact path="/">
          <Home data={data} />
        </Route>
        <Route exact path="/pages/:id">
          <Pages data={data} />
        </Route>
        <Route exact path="/sub_pages/:id">
          <SubPages data={data} />
        </Route>
        <Route exact path="/albums/:id">
          <Albums data={data} />
        </Route>
        <Route exact path="/employees/:employee_type">
          <Employees data={data} />
        </Route>
      </Switch>
    </>
  );
}
