{#each categories as category, idx}
onCategoryChosen(category)}
class:active={selectedCategory === category}>
{#if category.icon}{/if}
{category.name}
{#if category.isCategory}{/if}
{/each}
{#if selectedCategory != null}
onComponentChosen(e.detail)} />
{/if}