{#if loading}Checking for updates…{:else if error}Update check failed{:else if updaterRunning}Library update in progress...{#if updaterProgressLabel} ({updaterProgressLabel}){/if}{:else}Up to date{/if}
{#if !loading && lastUpdatedLabel} Last updated: {lastUpdatedLabel}
{/if} {#if !loading && updates.length > 0} {updates.length} chapter{updates.length === 1 ? "" : "s"} {/if}
{#if loading && updates.length === 0} {:else if error}

Couldn't load updates

{error}

{:else if updates.length === 0}

No recent library updates

Run a library update to populate this page.

{:else}
{#each groups as { label, items } (label)}
{label}
{#each items as item (item.id)}
{/each}
{/each}
{/if}