{#each components as component, index (component._id)}
selectComponent(component)}>
{get_capitalised_name(component._component)}
{#if index > 0}
onMoveUpComponent(component)}>
{/if} {#if index < components.length - 1}
{/if}
onCopyComponent(component)}>
onDeleteComponent(component)}>
{#if component._children}
{/if}
{/each}