{#each thumbnails as { page, url }, index (page.objectNumber)}
(selected = index)} >
{index + 1}
{/each}
{#if preview}
{/if}