<script lang="ts">
	import type { Tag } from '$lib/data/types';

	export let tag: Tag;

	import { _ } from 'svelte-i18n';
	import TopicSummary from '$lib/components/topic_summary/topic_summary.svelte';
</script>

<h1>{$_('tag.title')}: {tag.id}</h1>
<ul>
	{#each tag.topics as topic}
		<TopicSummary {topic} />
	{/each}
</ul>
