From dc4db405d2991d3ec6a114f3b08d3fccd057d3ee Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Thu, 13 Feb 2025 17:52:16 +0100
Subject: frontend: Migrate to Svelte 5

---
 frontend/src/lib/tabs/DetailsHeader.svelte | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'frontend/src/lib/tabs/DetailsHeader.svelte')

diff --git a/frontend/src/lib/tabs/DetailsHeader.svelte b/frontend/src/lib/tabs/DetailsHeader.svelte
index f980f75..ee5fa23 100644
--- a/frontend/src/lib/tabs/DetailsHeader.svelte
+++ b/frontend/src/lib/tabs/DetailsHeader.svelte
@@ -1,5 +1,7 @@
 <script lang="ts">
-	export let title: string;
+	import type { Snippet } from 'svelte';
+
+	let { title, children }: { title: string; children?: Snippet } = $props();
 </script>
 
 <div class="flex items-center gap-2">
@@ -7,5 +9,5 @@
 		{title}
 	</h2>
 	<div class="grow"></div>
-	<slot />
+	{@render children?.()}
 </div>
-- 
cgit v1.2.3-2-gb3c3

