]> git.r.bdr.sh - rbdr/forum/blob - src/lib/components/tag/tag.svelte
17440943f64bd1f770400048f65da340e084354c
[rbdr/forum] / src / lib / components / tag / tag.svelte
1 <script lang="ts">
2 import type { Tag, Topic } from '$lib/data/types';
3
4 export let tag: Tag;
5 export let topics: Topic[];
6
7 import { _ } from 'svelte-i18n';
8 import TopicSummary from '$lib/components/topic_summary/topic_summary.svelte';
9 </script>
10
11 <h1 class="py-4 font-bold text-3xl">{$_('tag.title')}: {tag}</h1>
12 <ul class="list-disc list-inside pl-2">
13 {#each topics as topic}
14 <TopicSummary {topic} />
15 {/each}
16 </ul>