<script>
	import '../app.postcss';
	import Sidebar from '$lib/Sidebar.svelte';
	import UserStore from '$lib/UserStore';

	$: isLoggedIn = false;

	UserStore.init();
	const unsubscribe = UserStore.subscribe((value) => {
		isLoggedIn = value.isLoggedIn;
	});
	onDestroy(unsubscribe);
</script>

<div style="min-height: 640px;" class="bg-white dark:bg-gray-800">
	<div class="h-screen flex overflow-hidden">
		<Sidebar />
		<div class="px-4 py-8 flex flex-col w-0 flex-1 overflow-hidden">
			<slot />
		</div>
	</div>
</div>
