<script lang="ts">
  import Login from "./login/loginPage.svelte";
  import { Router, Route, link } from 'svelte-routing';
  import MenuPage from './Menu/page.svelte';
  import ProteRoute from './lib/RutaProtegida.svelte';
  import InfoPage from './Info/page.svelte';
  import InqPage from "./Inquilinos/page.svelte";
</script>

<Router>
  
  <Route path="/" component={Login} />
  <Route path="/Info" component={InfoPage} />

  <Route path="/Menu">
     <ProteRoute component={MenuPage} />
  </Route>

  <Route path="/Inquilinos">
    <ProteRoute component={InqPage}/>
  </Route>
</Router>

