<script lang="ts">
    import { goto } from "$app/navigation";
    import { mainNavTree } from "$lib/core/constants";
    import { breadcrumbs } from "$lib/global.stores";
    import { makeClient } from "$lib/make-client.js";
    import { onMount } from "svelte";
    import type { PageData } from "./$types";

    let { data }: { data: PageData } = $props();

    const client = makeClient(fetch);

    breadcrumbs.set([mainNavTree[0]]);

    onMount(() => {
        goto("/dashboard");
    });
</script>
