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/statistics/StatGroup.svelte | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'frontend/src/lib/statistics/StatGroup.svelte')

diff --git a/frontend/src/lib/statistics/StatGroup.svelte b/frontend/src/lib/statistics/StatGroup.svelte
index e1b97da..e84c555 100644
--- a/frontend/src/lib/statistics/StatGroup.svelte
+++ b/frontend/src/lib/statistics/StatGroup.svelte
@@ -1,5 +1,7 @@
 <script lang="ts">
-	export let title;
+	import type { Snippet } from 'svelte';
+
+	let { title, children }: { title: string; children?: Snippet } = $props();
 </script>
 
 <section
@@ -7,6 +9,6 @@
 >
 	<h2 class="text-2xl">{title}</h2>
 	<div class="flex flex-row flex-wrap gap-10">
-		<slot />
+		{@render children?.()}
 	</div>
 </section>
-- 
cgit v1.2.3-2-gb3c3

