<script lang="ts">
	import { Toaster } from "svelte-sonner";
	import Header from "$lib/components/Header.svelte";
	import Router from "$lib/router/Router.svelte";
	import { Close } from "$wails/main/App";

	function keyDown(event: KeyboardEvent) {
		if (event.ctrlKey && event.key == "r") {
			window.location.reload();
		}
		if (event.ctrlKey && event.key == "w") {
			Close();
		}
	}
</script>

<svelte:window on:keydown={keyDown} />
<Toaster theme="dark" expand visibleToasts={9} />
<template>
	<!-- <Header /> -->
	<main class="flex-1">
		<Router />
	</main>
</template>
