{#if loading} {:else if title || unreadCount > 0}

{title}

{#if unreadCount > 0} {formatCount(unreadCount)} {/if}
{@render list()}
{:else}
{@render list()}
{/if} {#snippet list()} {#if empty} {:else}
{#each notifications as notification (notification.uri)} {/each}
{/if} {/snippet}