{meta.total} result{meta.total !== 1 ? 's' : ''}
{#if layout === 'list'} {#if columns.some((col) => col.sortable)}
Sort by {#each columns.filter((col) => col.sortable) as col (col.key)} {/each}
{/if}
{#each data as item, i} {@render row(item, i)} {:else}

{meta.search ? `No results for "${meta.search}"` : 'Nothing here yet'}

{/each}
{:else}
{#each columns as col} {/each} {#each data as item, i} {@render row(item, i)} {:else} {/each}
{#if col.sortable} {:else} {col.label} {/if}
{meta.search ? `No results for "${meta.search}"` : 'No data'}
{/if} {#if meta.totalPages > 1}
Showing {showingStart}–{showingEnd} of {meta.total}
{#each pageButtons as p} {#if p === '...'} ... {:else} {/if} {/each}
{/if}