{ if (e.target === e.currentTarget) onclose(); }} >
e.stopPropagation()} >
Notifications {#if unreadCount > 0} {unreadCount} {/if}
{#if unreadCount > 0} {/if} {#if notifications.length > 0} {/if}
{#if filtered.length === 0}
{filter === 'unread' ? 'No unread notifications' : 'No notifications yet'}
{:else} {#each filtered as n (n.id)}
{ onMarkRead(n.id); onclose(); }} class="flex-1 px-4 py-3.5 min-w-0" >
{#if !n.read} {/if} {n.title}

{n.message}

{/each} {/if}