You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
519 B
24 lines
519 B
<script lang="ts"> |
|
import "./layout.css"; |
|
import favicon from "$lib/assets/favicon.svg"; |
|
import { themeStore } from "$lib/stores/theme.svelte"; |
|
import { ErrorBoundary, ToastContainer } from "$lib/components"; |
|
import { onMount } from "svelte"; |
|
|
|
let { children } = $props(); |
|
|
|
// Apply saved theme colors on mount |
|
onMount(() => { |
|
themeStore.applyTheme(); |
|
}); |
|
</script> |
|
|
|
<svelte:head> |
|
<link rel="icon" href={favicon} /> |
|
</svelte:head> |
|
|
|
<ErrorBoundary> |
|
{@render children()} |
|
</ErrorBoundary> |
|
|
|
<ToastContainer />
|
|
|