{#each nodes as node}
{ if (event.key === "Enter") { handleNodeCreation(node.id); } }} onmousedown={() => handleNodeCreation(node.id)} onfocus={() => { activeNodeId = node.id; }} class:selected={node.id === activeNodeId} onmouseover={() => { activeNodeId = node.id; }} > {node.id.split("/").at(-1)}
{/each}