Chapters {#each chapters as chapter} {#if chapter.subitems.length > 0}
await navigateToChapter(chapter)} > {chapter.label}
{#each chapter.subitems as subchapter} await navigateToChapter(subchapter)} > {subchapter.label} {/each}
{:else} await navigateToChapter(chapter)} > {chapter.label} {/if} {/each}
{#if browser} {#if !isReaderVisible}
{/if}
{/if}