{#each $nav.children as child, index (child.path)} file_event(FileAction.Click, index, e)} oncontextmenu={e => file_event(FileAction.Context, index, e)} ondragstart={e => file_event(FileAction.Drag, index, e)} use:move_target={{nav, node: () => child}} class="node" class:node_selected={$nav.selection.has(child.path)} class:hidden={child.name.startsWith(".") && !show_hidden} > icon
{child.name}
{#if child.is_shared()} share {/if} {#if !hide_edit} {/if}
{/each}