{#if open}
Notifications
{#if unreadCount > 0} {/if} {#if history.length > 0} {/if}
{#if history.length === 0}
No notifications
{:else} {#each [...history].reverse() as item (item.id)} {/each} {/if}
{/if}