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