<script lang="ts">
  import Layout from "./lib/Layout.svelte";
  import LoginForm from "./lib/LoginForm.svelte";
  import DataView from "./lib/DataView.svelte";
  import { authenticated } from "./stores/auth";
</script>

<main>
  <Layout>
    {#if !$authenticated}
      <LoginForm />
    {:else}
      <DataView />
    {/if}
  </Layout>
</main>
