{#if clearError}
{clearError}
{/if} {#if rows.length === 0}
{emptyText}
{:else}
{#each rows as p (p.manga_id)}
{#if p.manga_cover_image_path}
{:else}
{/if}
{p.manga_title}
{#if p.chapter_id != null && p.chapter_number != null}
{continueLabel(p)}
{:else if p.chapter_id}
(chapter removed)
{:else}
Whole manga, page {p.page}
{/if}
Read {formatDate(p.updated_at)}
{#if onClear}
clear(p)} aria-label={`Clear ${p.manga_title} from history`} title="Clear from history" data-testid="{testid}-clear-{p.manga_id}" >
{/if}
{/each}
{/if}