4 import { _ } from 'svelte-i18n';
5 import { getForum } from '$/stores/forum';
6 import ErrorBlock from '$/components/error_block/error_block.svelte';
7 import Loader from '$/components/loader/loader.svelte';
9 import TopicSummary from '$/components/topic_summary/topic_summary.svelte';
11 $: store = getForum(id);
12 $: forum = $store.data;
19 <ErrorBlock message={$_('forum.error.unavailable')} />
22 <h1>{forum.glyph} {$_(forum.label)}</h1>
24 {#each forum.topics as topic}
25 <TopicSummary topic={topic} />