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

{repo.stargazers_count} Stars | Last updated on {formatDate(repo.updated_at)}
{/each}
{#if currentPage > 1} {/if} {#if currentPage < Math.ceil(repos.length / reposPerPage)} {/if} {/if} {/if}