···11+<script lang="ts" module>
22+ let windowWidth = $state(0);
33+ let mobile = $derived(windowWidth <= 425);
44+55+ /**
66+ * @returns true if the screen is small enough to be considered a mobile device.
77+ */
88+ export const isMobile = () => mobile;
99+</script>
1010+111<script lang="ts">
212 import "@fontsource-variable/open-sans";
313 import "@fontsource/dejavu-mono";
···515616 import Toaster from "./Toaster.svelte";
717 import Dialog from "./Dialog.svelte";
1818+ import { AnimationFrames } from "runed";
819920 let { children } = $props();
2121+2222+ new AnimationFrames(() => {
2323+ windowWidth = window.innerWidth;
2424+ });
1025</script>
11261227<Toaster />