{#if store.history.length === 0}
No reading history yet
Chapters you read will appear here
{:else if sessions.length === 0}
No results for "{search}"
{:else}
{#if store.readingStats.totalChaptersRead > 0}
Reading Stats
{store.readingStats.currentStreakDays}
Day streak
{store.readingStats.totalChaptersRead}
Chapters read
{formatReadTime(store.readingStats.totalMinutesRead)}
Read time
{store.readingStats.totalMangaRead}
Series read
{/if} {#each groups as { label, items }}
{label}
{#each items as session (session.latestChapterId)}
setPreviewManga({ id: session.mangaId, title: session.mangaTitle, thumbnailUrl: thumbFor(session.mangaId, session.thumbnailUrl) } as any)}>
{#if session.chapterCount > 1}
{session.chapterCount}
{/if}
{session.mangaTitle}
{#if session.chapterCount > 1} {session.firstChapterName}
→
{session.latestChapterName} {:else} {session.latestChapterName} {#if session.latestPageNumber > 1}
· p.{session.latestPageNumber}
{/if} {/if}
{timeAgo(session.readAt)}
{/each}
{/each}
{/if}