{#snippet toggle(onclick)} { buttonActive = true; await loadNotifications(); onclick(); }} variant={notificationCount && notificationCount > 0 ? "secondary" : "ghost"} active={buttonActive}> {#if notificationCount !== undefined && notificationCount > 0} {notificationCount} {/if} {/snippet} {#snippet popover()} {/snippet}