{#each pages as page}
open(page.id)}>
{#if typeof page.icon === 'string'} {page.title} {:else} {/if}

{page.title}

{#if page.subComponents} {#each page.subComponents as sub}

{sub.title}

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