2 import type { Forum } from '$lib/data/types';
4 export let forums: Forum[];
6 import { _ } from 'svelte-i18n';
7 $: sortedForums = forums
9 .sort((a, b) => a.position - b.position);
13 {#each sortedForums as forum}
14 <li class="block text-left mb-5">
15 <a class="no-underline text-blue-600 visited:text-purple-500" href="/f/{forum.id}">
16 <span aria-hidden="true" class="block text-2xl {forum.glyph}">{forum.glyph}</span>
17 <span class="navigation-label">{$_(forum.label)}</span>