diff --git a/src/lib/components/ThemePicker.svelte b/src/lib/components/ThemePicker.svelte
index 6287fdc..0aefcfb 100644
--- a/src/lib/components/ThemePicker.svelte
+++ b/src/lib/components/ThemePicker.svelte
@@ -20,7 +20,6 @@
}
}
- // let icon = $derived.by(() => theme)
let icon = $derived(theme)
@@ -34,9 +33,9 @@
{#if icon === "dark"}
- {@html ``}
+ {@render DarkModeIcon()}
{:else}
- {@html ``}
+ {@render LightModeIcon()}
{/if}
@@ -44,6 +43,38 @@
{/key}
+{#snippet DarkModeIcon()}
+
+{/snippet}
+
+{#snippet LightModeIcon()}
+
+{/snippet}
+