{#if composite && 'component' in composite} {#await loadComponentAndService(composite) then [Component, serviceProps]} {#if Component} {:else if composite.component}

Component {composite.component} not found.

{/if} {/await} {/if} {#if composite?.children} {#each composite.children as child (child.id)}
{#await loadComponentAndService(child) then [ChildComponent, childServiceProps]} {#if ChildComponent} {#if child.children && child.children.length} {/if} {:else if child.component}

Component {child.component} not found.

{/if} {/await}
{/each} {/if}