1 <script lang="ts" context="module">
2 export const load = ({ params: { id } }) => ({ props: { id } });
6 import { _ } from 'svelte-i18n';
7 import Forum from '$lib/components/forum/forum.svelte';
8 import ErrorBlock from '$lib/components/error_block/error_block.svelte';
9 import Loader from '$lib/components/loader/loader.svelte';
11 export let id: string;
13 import { forum } from '$lib/stores/forums';
14 $: response = forum(id, true);
18 <title>{$_(`forum.name.${id}`)}, {$_('forum.forum')}</title>
21 {#if $response.loading}
25 <ErrorBlock message={$_('forum.error.unavailable')} />
28 <Forum forum={$response.data} />