import React from "react";
import {
  BrowserRouter as Router,
  Switch,
  Route,
  Redirect,
} from "react-router-dom";
import { AuthLayout } from "../components/layouts";
import { Ingresar } from "../views/auth/";
import { Verificar } from "../views/verificar";
import { EventoResumenDependencia, EventoResumenYager, EventoYager } from "../views/evento-yager";

const PublicRouter = () => {
  return (
    <Router>
      <AuthLayout>
        <Switch>
          <Route exact path="/" component={Ingresar} />
          <Route exact path="/verificar" component={Verificar} />
          <Route exact path="/evento-laud" component={EventoYager} />
          <Route exact path="/resumen-evento" component={EventoResumenYager} />
          <Route exact path="/resumen-lider-dependencia" component={EventoResumenDependencia} />
          <Route path="*" component={() => <Redirect to="/" />} /> 
        </Switch>
      </AuthLayout>
    </Router>
  );
};

export default PublicRouter;
