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/containers/Carousel.svelte | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

(limited to 'frontend/src/lib/containers/Carousel.svelte')

diff --git a/frontend/src/lib/containers/Carousel.svelte b/frontend/src/lib/containers/Carousel.svelte
index 1268a78..fb05b7d 100644
--- a/frontend/src/lib/containers/Carousel.svelte
+++ b/frontend/src/lib/containers/Carousel.svelte
@@ -1,6 +1,13 @@
 <script lang="ts">
-	export let title: string;
-	export let href: string;
+	import type { Snippet } from 'svelte';
+
+	interface Props {
+		title: string;
+		href: string;
+		children?: Snippet;
+	}
+
+	let { title, href, children }: Props = $props();
 </script>
 
 <div class="flex flex-col gap-1">
@@ -10,6 +17,6 @@
 		</a>
 	</h2>
 	<div class="flex flex-wrap gap-5">
-		<slot />
+		{@render children?.()}
 	</div>
 </div>
-- 
cgit v1.2.3-2-gb3c3

