{#if grid}
{#each Array(count) as _, i (i)}
{/each}
{:else} {#each Array(count) as _, i (i)}
{#if !list && i < count - 1} {/if} {/each} {/if}