---
import "@css/global.css";
const { tabTitle } = Astro.props;
---

<html lang="en">
	<head>
		<meta charset="utf-8" />
		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
		<meta name="viewport" content="width=device-width" />
		<meta name="generator" content={Astro.generator} />
		<title>{tabTitle}</title>
	</head>
	<body>
		<slot />
		<script>
			import { WindowManager } from "@models/WindowManager.ts";
			document.addEventListener("DOMContentLoaded", () => {
				document
					.querySelectorAll(".window")
					.forEach(window => WindowManager.observe(window));
			});
		</script>
	</body>
</html>
