libnovel
{#key page.url.pathname + page.url.search} {@render children()} {/key}
{#if audioStore.active}
{#if audioStore.status === 'generating' || audioStore.status === 'loading'}
{:else if audioStore.status === 'ready'}
{/if}
{#if audioStore.chapterTitle}

{audioStore.chapterTitle}

{/if} {#if audioStore.bookTitle}

{audioStore.bookTitle}

{/if} {#if audioStore.status === 'generating'}

Generating… {Math.round(audioStore.progress)}%

{:else if audioStore.status === 'ready'}

{formatTime(audioStore.currentTime)} / {formatTime(audioStore.duration)}

{:else if audioStore.status === 'loading'}

Loading…

{/if}
{#if audioStore.status === 'ready'} {:else if audioStore.status === 'generating'} {/if} {#if audioStore.slug && audioStore.chapter > 0} {/if}
{/if}