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