contextMenu(e, null)}
ondragover={(e) => e.preventDefault()}
ondrop={(e) => {
e.preventDefault();
onDrop('', e.dataTransfer?.getData('text/x-papure-path') ?? '');
}}
>
{#each root.children as node (node.path)}
workspace.open(p)}
onContext={contextMenu}
onRename={commitRename}
onCancelRename={() => (renaming = null)}
{onDrop}
/>
{:else}
No canvases yet.
Right-click or use the buttons above.
{/each}