X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/a7cf03c192470cbab13edeb1aec99e0c66dede10..2ab71001d511b656f008316c08e09f89972028d8:/src/lib/components/topic/topic.svelte?ds=sidebyside

diff --git a/src/lib/components/topic/topic.svelte b/src/lib/components/topic/topic.svelte
index 06f2aeb..ec89876 100644
--- a/src/lib/components/topic/topic.svelte
+++ b/src/lib/components/topic/topic.svelte
@@ -1,5 +1,7 @@
 <script lang="ts">
-	export let topic;
+	import type { Topic } from '$lib/data/types';
+
+	export let topic: Topic;
 
 	import { _ } from 'svelte-i18n';
 	import Post from '$lib/components/post/post.svelte';
@@ -14,27 +16,28 @@
 	<aside class="topic-meta" title={$_('topic.metadata_title')}>
 		{#if topic.forum}
 			<span class="topic-location">
-        {$_('topic.category_location')}
+				{$_('topic.category_location')}
 				<a href="/f/{topic.forum.id}" class="p-category">
-          {topic.forum.glyph} {$_(topic.forum.label)}
-        </a>.
-      </span>
+					{topic.forum.glyph}
+					{$_(topic.forum.label)}
+				</a>.
+			</span>
 		{/if}
 		<span class="topic-ttl">
-      <a class="u-url u-uid" title={$_('topic.permalink_title')} href="/t/{topic.id}">
-        ({$_('topic.remaining_time', {
+			<a class="u-url u-uid" title={$_('topic.permalink_title')} href="/t/{topic.id}">
+				({$_('topic.remaining_time', {
 					values: { remaining: $_(remaining.label, { values: { count: remaining.count } }) }
-        })})
-      </a>.
-    </span>
+				})})
+			</a>.
+		</span>
 	</aside>
 	{#if topic.tags.length > 0}
 		<aside class="topic-tags" title={$_('topic.tags_title')}>
 			{$_('topic.tags_location')}
 			{#each topic.tags as tag}
 				<a href="/g/{tag.id}" class="p-category">
-          {tag.id}<span class="tag-weight">({tag.weight})</span>
-        </a>{' '}
+					{tag.id}<span class="tag-weight">({tag.weight})</span>
+				</a>{' '}
 			{/each}
 		</aside>
 	{/if}
