1 <script lang="ts" context="module">
4 }) => ({ props: { id } });
8 import { _ } from 'svelte-i18n';
9 import Forum from '$lib/components/forum/forum.svelte';
10 import ErrorBlock from '$lib/components/error_block/error_block.svelte';
11 import Loader from '$lib/components/loader/loader.svelte';
13 export let id: string;
15 import { forum } from '$lib/stores/forums';
16 $: response = forum(id, true);
20 <title>{$_(`forum.name.${id}`)}, {$_('forum.forum')}</title>
23 {#if $response.loading}
27 <ErrorBlock message={$_('forum.error.unavailable')} />
30 <Forum forum={$response.data} />