]> git.r.bdr.sh - rbdr/forum/blobdiff - src/lib/components/tag/tag.svelte
Don't remember what this WIP was about
[rbdr/forum] / src / lib / components / tag / tag.svelte
index b3fe806a12757dd37a5fdf43954319a43083298f..71e8efff466d54db3d4bfb38cb4da7fecbd7f39a 100644 (file)
@@ -1,15 +1,16 @@
 <script lang="ts">
-       import type { Tag } from '$lib/data/types';
+       import type { Topic } from '$lib/data/types';
 
-       export let tag: Tag;
+       export let tag: string;
+       export let topics: Topic[];
 
        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}
+<h1 class="py-4 font-bold text-3xl">{$_('tag.title')}: {tag}</h1>
+<ul class="list-disc list-inside pl-2">
+       {#each topics as topic}
                <TopicSummary {topic} />
        {/each}
 </ul>