Collections
{#if currentCollections.length === 0}
{#if activeView === 'collections'}
{:else}
{/if}
{activeView === 'collections'
? $t('collection.no_collections_yet')
: $t('collection.no_archived_collections')}
{activeView === 'collections'
? $t('collection.create_first')
: $t('collection.archived_appear_here')}
{#if activeView === 'collections'}
{/if}
{:else}
{#each currentCollections as collection (collection.id)}
{
collectionIdToLeave = e.detail;
isShowingConfirmLeaveModal = true;
}}
/>
{/each}
{#if activeView === 'collections' && (next || previous)}
{#each Array.from({ length: totalPages }, (_, i) => i + 1) as page}
{/each}
{/if}
{/if}