{#each componentLibraries as componentLibrary}
{componentLibrary.libName}
{/each}
{#each componentLibraries as componentLibrary}
(current_view = 'text')}>
(current_view = 'layout')}>
(current_view = 'media')}>
{#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}