{#each componentLibraries as componentLibrary}
{#each $store.builtins.concat(componentLibrary.components) as component}
onComponentChosen(component.name)}>
{splitName(component.name).componentName}
{#if component.presets && component.name === selectedComponent}
    {splitName(component.name).componentName} Presets {#each Object.keys(component.presets) as preset}
  • onComponentChosen(component.name, preset)}> {preset}
  • {/each}
{/if}
{#if component.presets} { selectedComponent = selectedComponent ? null : component.name; }} > ... {/if}
{/each}
{/each}