{#snippet readSegment( filter: ReadFilter, label: string, icon: Component )} {/snippet}
{@render readSegment("inbox", "Inbox", Inbox)} {@render readSegment("unread", "Unread", Glasses)} {#if hasNotifications} {/if}
{#if onCategoryFilter} {#each categories as category (category)} {@const segment = segmentProps(categoryFilter === category)} {/each} {/if} {#if preferences} {/if}