{#if isLoading}
{:else} {#if error}
{error}
{:else}
{#each repos.slice((currentPage - 1) * reposPerPage, currentPage * reposPerPage) as repo (repo.id)}
{repo.name}
{repo.description || 'No description provided'}
Repository
{/each}
{#if currentPage > 1}
Previous
{/if} {#if currentPage < Math.ceil(repos.length / reposPerPage)}
Next
{/if} {/if} {/if}