{#snippet content(items: NotificationSummary[], totalUnread: number | null)} {#if items.length > 0} {:else if totalUnread === 0} All caught up! {:else} Open your inbox {/if} {/snippet} {#snippet action()} View all {/snippet} {#if !signedIn} Log in to view your inbox {:else if loading} {:else if fixturePreview} {#if fixturePreview instanceof Promise} {#await fixturePreview} {:then resolved} {@render content(resolved, null)} {/await} {:else} {@render content(fixturePreview.notifications, fixturePreview.totalUnread)} {/if} {:else if live} {@render content(live, context?.unread ?? null)} {:else} Open your inbox {/if}
All caught up!