aboutsummaryrefslogtreecommitdiff
path: root/fe/src/App.svelte
blob: 25d53dccd8405f3e5ec5df91fab3447ad3271b64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<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>