2 import type { Forum } from '$lib/data/types';
4 export let forums: Forum[];
6 import { _ } from 'svelte-i18n';
7 $: sortedForums = forums.slice().sort((a, b) => a.position - b.position);
11 {#each sortedForums as forum}
13 <a href="/f/{forum.id}">
14 <span aria-hidden="true" class="navigation-glyph {forum.glyph}">{forum.glyph}</span>
15 <span class="navigation-label">{$_(forum.label)}</span>
42 text-decoration: none;