{#if showCategories && items.length > 0}
{#each categories as category} {@const hasItems = items.some((item) => item.category === category)} {#if hasItems} {/if} {/each}
{/if} {#if filteredItems().length === 0}

{translations.faq.noItems}

{:else}
{#each filteredItems() as item (item.id)} toggleItem(item.id)} /> {/each}
{/if} {#if hasMore}
{/if}