{#if visibleActions.length === 1} {:else if visibleActions.length > 1}
{#each visibleActions as action (action.id)} {@const Icon = getActionIcon(action.id)} {#if action.href} { showMenu = false; if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) return; e.preventDefault(); runAction(action); }} > {action.label} {:else} {/if} {/each}
{/if}