Collections {#if isShowingConfirmLeaveModal} (isShowingConfirmLeaveModal = false)} on:confirm={leaveCollection} /> {/if} {#if isShowingCollectionModal} (isShowingCollectionModal = false)} on:saveEdit={saveEdit} on:save={saveOrCreate} /> {/if} {#if isImporting} {/if}

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}

{$t('adventures.filters_and_sort')}

{$t('adventures.status_filter')}

{$t(`adventures.sort`)}

{#if activeView === 'collections'}
{/if}