{#if navigating.to?.route.id == '/communities'}
{#each new Array(5) as _, index} {_}
{/each}
{:else}
{#if data.communities.value.length == 0}
{/if} {#if showTop}
{$t('routes.search.top')}
{#each data.communities.value.slice(0, 3) as community, index (community.community.id)}
{/each}
{/if} {#if data.communities.value.slice(showTop ? 3 : 0).length > 0}
{$t('routes.search.other')}
{/if} {#if data.communities.value} {@const sliced = data.communities.value.slice(showTop ? 3 : 0)}
{#snippet item(community)}
{/snippet}
{/if}
{/if} {#if data.communities.value.length > 0}
`?page=${c}`} />
{/if}