<script>
  import { AppBar } from '@skeletonlabs/skeleton';
  import "../app.css";

  import { currentUser } from '$lib/store';
  import CurrentUser from '$lib/components/CurrentUser.svelte';
</script>

<div id="app">
    <AppBar>
        <svelte:fragment slot="lead">🌳</svelte:fragment>
        <a href="/">understory</a>
        <svelte:fragment slot="trail">
            {#if $currentUser}
                <CurrentUser />
            {/if}
        </svelte:fragment>
    </AppBar>

    <slot />
</div>

<style>
    #app {
        margin: 0;
        padding: 1rem;
        height: 100vh;
        width: 100%;
    }
</style>
