{#if totalPages > 1}
{#each Array.from({ length: end + 1 - start }, (_, i) => i + start) as page}

{page.toString()}

{/each}
{/if}