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