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

  const { children } = $props();
  
  // Configurar Convex para usar o backend local
  setupConvex(PUBLIC_CONVEX_URL);
  
  // Configurar cliente de autenticação
  // createSvelteAuthClient({ authClient });
</script>

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