{#if contextMenu} (contextMenu = null)} onAddToQueue={() => { const menu = contextMenu; if (menu) { const index = targets.findIndex((target) => targetId(target) === targetId(menu)); if (index >= 0) player.addToQueue(queue[index]); } contextMenu = null; }} /> {/if}