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

{$t(`adventures.my_collections`)}

{currentCount} {activeView === 'owned' ? 'collections' : activeView === 'shared' ? 'shared collections' : 'archived collections'}

{#if currentCollections.length === 0}
{#if activeView === 'owned'} {:else if activeView === 'shared'} {:else} {/if}

{activeView === 'owned' ? 'No collections yet' : activeView === 'shared' ? 'No shared collections.' : 'No archived collections'}

{activeView === 'owned' ? 'Create your first collection to organize your adventures and memories.' : activeView === 'shared' ? 'Make sure your profile is public so others can share with you.' : 'Archived collections will appear here.'}

{#if activeView === 'owned'} {/if}
{:else}
{#each currentCollections as collection} {/each}
{#if activeView === 'owned' && (next || previous)}
{#each Array.from({ length: totalPages }, (_, i) => i + 1) as page} {/each}
{/if} {/if}

Filters & Sort

{$t(`adventures.sort`)}

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