<script lang="ts">
// routing
	// may not need {link} here
	import Router, { link, replace } from "svelte-spa-router";
  import { primaryRoutes } from "./routes/primaryRoutes.js";
  // import primaryRoutes from "./routes/primaryRoutes.svelte";

  const conditionsFailed = (event) => {
    console.error('conditionsFailed event', event.detail);
    // i mean i guess i can just leave this in there permanently?

    replace('/unauthorized-access');
  };

  // this might be the part where we get rid of localstorage when the app is quit?
  // onDestroy()

</script>

<!-- <h1>Testing</h1> -->
<Router routes={primaryRoutes} on:conditionsFailed={conditionsFailed}/>


<style>

	/* doesn't work... */
  /* body{
    background: bisque;
  } */
</style>


