{#if activeTab.type === "inbox"}
router.push({ resource: "inbox" })}>
Inbox
{sum(Array.from(notificationCount.values()).map(c => c.count))}
{#each notificationCount.entries() as [_, n]}
router.push({ resource: "inbox", activeTab: n, })} class:active={activeTab.repo?.rid === n.rid}>
{n.name}
{n.count}
{/each}
{:else}
router.push({ resource: "inbox" })} style:color="var(--color-foreground-contrast)" style:padding-left="12px">
Inbox
{sum(Array.from(notificationCount.values()).map(c => c.count))}
{/if}
{#if activeTab.type === "repos"}
router.push({ resource: "home" })}>
Repositories
{repoCount.total}
router.push({ resource: "home", activeTab: "delegate", })}>
Delegate
{repoCount.delegate}
router.push({ resource: "home", activeTab: "contributor", })}>
Contributor
{repoCount.contributor}
router.push({ resource: "home", activeTab: "private", })}>
Private
{repoCount.private}
{:else}
Repositories
{repoCount.total}
{/if}