'use strict';

let ReactRouter = window.ReactRouterDOM
let BrowserRouter = ReactRouter.BrowserRouter;
let HashRouter = ReactRouter.HashRouter;
let Link = ReactRouter.Link;
let MemoryRouter = ReactRouter.MemoryRouter;
let NavLink = ReactRouter.NavLink;
let Prompt = ReactRouter.Prompt;
let Redirect = ReactRouter.Redirect;
let Route = ReactRouter.Route;
let Router = ReactRouter.Router;
let StaticRouter = ReactRouter.StaticRouter;
let Switch = ReactRouter.Switch;

let generatePath = ReactRouter.generatePath;
let matchPath = ReactRouter.matchPath;
let useHistory = ReactRouter.useHistory;
let useLocation = ReactRouter.useLocation;
let useParams = ReactRouter.useParams;
let useRouteMatch = ReactRouter.useRouteMatch;
let withRouter = ReactRouter.withRouter;

class PageLayout extends React.Component 
{
  constructor(props) 
  {
    super(props);
  }

  render() 
  {
    return (
      <div id="page">     
        <Header name="Visite Guidée à Rome" url="http://rome.jardillier.net" />
        <ErrorBoundary>
          <BrowserRouter>
            <Navigation date="13 Dec. 2020" />
            <Switch>
              <Route path="/" exact component={Accueil}></Route>
              <Route path="/liens-web" component={LiensWeb}></Route>
              <Route path="/introduction" component={Introduction}></Route>
              <Route path="/carte" component={Carte}></Route>
              <Route path="/catacombes-saint-sebastien" component={CatacombesSaintSebastien}></Route>
              <Route path="/chapelle-sixtine" component={ChapelleSixtine}></Route>
              <Route path="/colisee" component={Colisee}></Route>
              <Route path="/fontaine-trevi" component={FontaineTrevi}></Route>
              <Route path="/forum-romain" component={ForumRomain}></Route>
              <Route path="/pantheon" component={Pantheon}></Route>
              <Route path="/place-navone" component={PlaceNavone}></Route>
              <Route path="/saint-paul-hors-les-murs" component={SaintPaulHorsLesMurs}></Route>
              <Route path="/vatican" component={Vatican}></Route>
              <Route path="/bernin" component={Bernin}></Route>
              <Route path="/borromini" component={Borromini}></Route>
              <Route path="/caravage" component={Caravage}></Route>
              <Route path="/michel-ange" component={MichelAnge}></Route>
              <Route path="/lieux-detente" component={LieuxDetente}></Route>
              <Route path="/restaurants" component={Restaurants}></Route>
              <Route path="/idees-shopping" component={IdeesShopping}></Route>
            </Switch>
          </BrowserRouter>  
        </ErrorBoundary>
        <Footer year="1999" author="Ingrid JARDILLIER" contact="rome@jardillier.net" />
      </div>
      ); 
  }
}