{#each componentLibraries as lib}
{lib.libName}
(current_view = 'text')}>
(current_view = 'layout')}>
(current_view = 'media')}>
{#each lib.components.filter(_ => true) as component}
onComponentChosen(component.name)}>
{splitName(component.name).componentName}
{/each}
{/each}