{#each Array(12) as _}
{/each}
{:else if items.length === 0}
{tab === 'downloaded'
? 'No downloaded manga.'
: 'No manga in this library — browse sources to add some.'}
{:else}
{#each items as m (m.id)}
{@const isSelected = selected.has(m.id)}
{@const isCompleted = m.status === 'COMPLETED' || (!m.unreadCount && (m.chapters?.totalCount ?? 0) > 0)}
{/each}
{/if}