{#each actions as action, index} {@const position = getButtonPosition(index, actions.length)} {@const openDelay = index * 35} {@const closeDelay = (actions.length - 1 - index) * 25}
{ handleActionClick(action); }} >
{action.icon}
{/each}
{ if (e.key === "Enter" || e.key === " ") { toggleMenu(); e.preventDefault(); } }} >
{ariaLabel}