{#each categories as category}
(selectedCategory = category)} class:active={selectedCategory === category}> {category.name}
{/each}
onComponentChosen(e.detail)} />
(selectedComponent = null)} onOk={onTemplateInstanceChosen}> {#each templateInstances.map(i => i.name) as instance}
{instance}
{/each}