From 08b62b2de02c02c8a4bbc2da2bfd11fe89424c95 Mon Sep 17 00:00:00 2001
From: pml68 <contact@pml68.me>
Date: Wed, 30 Oct 2024 00:39:03 +0100
Subject: chore: upgrade to Svelte 5

---
 src/routes/+layout.svelte | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'src/routes/+layout.svelte')

diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index e2df988..f45c602 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -3,11 +3,16 @@
 
   import WaveLeft from '$lib/assets/wave1.svg?url'
   import WaveRight from '$lib/assets/wave2.svg?url'
+  interface Props {
+    children?: import('svelte').Snippet;
+  }
+
+  let { children }: Props = $props();
 </script>
 
 <img src={WaveLeft} alt="" class="wave wave1" />
 <img src={WaveRight} alt="" class="wave wave2" />
 
 <div class="container">
-  <slot/>
+  {@render children?.()}
 </div>
-- 
cgit v1.2.3

