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/components/BookmarkButton.svelte | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'frontend/src/lib/components/BookmarkButton.svelte')

diff --git a/frontend/src/lib/components/BookmarkButton.svelte b/frontend/src/lib/components/BookmarkButton.svelte
index 89570e6..bdcbd75 100644
--- a/frontend/src/lib/components/BookmarkButton.svelte
+++ b/frontend/src/lib/components/BookmarkButton.svelte
@@ -1,9 +1,15 @@
 <script lang="ts">
 	import Bookmark from '$lib/icons/Bookmark.svelte';
+	import type { MouseEventHandler } from 'svelte/elements';
 
-	export let bookmarked: boolean;
+	interface Props {
+		bookmarked: boolean;
+		onclick: MouseEventHandler<HTMLButtonElement>;
+	}
+
+	let { bookmarked, onclick }: Props = $props();
 </script>
 
-<button type="button" title="Toggle bookmark" class="flex text-base" on:click>
+<button type="button" title="Toggle bookmark" class="flex text-base" {onclick}>
 	<Bookmark hoverable {bookmarked} />
 </button>
-- 
cgit v1.2.3-2-gb3c3

