<script>
	import '$/config/i18n';
	import { isLoading } from 'svelte-i18n';
	import ForumList from '$/components/forum_list/forum_list.svelte';
	import Header from '$/components/header/header.svelte';
	import Loader from '$/components/loader/loader.svelte';
	import Footer from '$/components/footer/footer.svelte';
</script>

{#if $isLoading}
	<Loader />
{:else}
	<Header />
	<main>
		<slot />
	</main>
	<ForumList />
	<Footer />
{/if}
