1 <script lang="ts" context="module">
4 }) => ({ props: { id } });
8 import { _ } from 'svelte-i18n';
9 import { topicsForTag } from '$lib/stores/topics';
10 import ErrorBlock from '$lib/components/error_block/error_block.svelte';
11 import Loader from '$lib/components/loader/loader.svelte';
12 import Tag from '$lib/components/tag/tag.svelte';
13 export let id: string;
15 $: tagResponse = topicsForTag(id);
19 <title>{id}, {$_('tag.title')}</title>
22 {#if $tagResponse.loading}
25 {#if $tagResponse.error}
26 <ErrorBlock message={$_('tag.error.unavailable')} />
28 {#if $tagResponse.data}
29 <Tag topics={$tagResponse.data} tag={id} />