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