{#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'}

{/each}
{#if currentPage > 1} {/if} {#if currentPage < Math.ceil(repos.length / reposPerPage)} {/if} {/if} {/if}