chore(ui): add persistent layout with page title

This commit is contained in:
peaklabs-dev 2026-03-10 14:41:41 +01:00
parent 1bd2188671
commit d1e410fddb
No known key found for this signature in database

View file

@ -0,0 +1,17 @@
<script lang="ts">
import { useLayoutProps, page } from "@inertiajs/svelte";
const layout = useLayoutProps({
title: "",
});
let { children } = $props();
</script>
<svelte:head>
<title>{$layout.title ? `${$layout.title} - ` : ""}{page.props.appName}</title>
</svelte:head>
<main>
{@render children()}
</main>