<script>
  import "/src/app.css";
  import Header from "./Header.svelte";
  import Footer from "./Footer.svelte";
  import ErrorLoading from '/src/lib/ErrorLoading.svelte';
  import { page } from '$app/stores';
</script>

<Header/>

{#if $page.status == 200}
  <slot />
{:else}
  <ErrorLoading/>
{/if}

<Footer/>