<script lang="ts">
  import "../app.css";
  import Header from "$lib/components/Header.svelte";
  import Sidebar from "$lib/components/Sidebar.svelte";
  import { PUBLIC_CONVEX_URL } from "$env/static/public";
  import { setupConvex } from "convex-svelte";

  const { children } = $props();
  setupConvex(PUBLIC_CONVEX_URL);
</script>

<div>
  <div class="flex">
    <Sidebar>{@render children()}</Sidebar>
  </div>
</div>
