]> git.r.bdr.sh - rbdr/forum/blob - src/lib/components/forum/forum.svelte
bcd23a357af11c9ef39c98fa8ee5e4e9c1022418
[rbdr/forum] / src / lib / components / forum / forum.svelte
1 <script lang="ts">
2 import type { Forum } from '$lib/data/types';
3
4 export let forum: Forum;
5
6 import { _ } from 'svelte-i18n';
7 import TopicSummary from '$lib/components/topic_summary/topic_summary.svelte';
8 </script>
9
10 <h1>{forum.glyph} {$_(forum.label)}</h1>
11 <ul>
12 {#each forum.topics as topic}
13 <TopicSummary {topic} />
14 {/each}
15 </ul>