Filter by topic: {#each getTopicsWithCounts() as { topic, count }} {/each}
{#if loading}

Loading threads...

{:else}
{#each filteredThreads as thread} {@const voteCounts = voteCountsMap.get(thread.id) ?? { upvotes: 0, downvotes: 0 }}
navigateToEvent(thread, e)} role="button" tabindex="0" onkeydown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); navigateToEvent(thread); } }} >
{/each} {#if filteredThreads.length === 0}

No threads found.

{/if}
{/if}