{#if isWarningModalOpen} (isWarningModalOpen = false)} on:confirm={deleteCollection} /> {/if} {#if isShareModalOpen} (isShareModalOpen = false)} /> {/if}
{collection.is_public ? $t('adventures.public') : $t('adventures.private')}
{#if collection.is_archived}
{$t('adventures.archived')}
{/if}

{collection.adventures.length} {$t('navbar.adventures')}

{#if collection.start_date && collection.end_date}

{$t('adventures.dates')}: {new Date(collection.start_date).toLocaleDateString(undefined, { timeZone: 'UTC' })} – {new Date(collection.end_date).toLocaleDateString(undefined, { timeZone: 'UTC' })}

{$t('adventures.duration')}: {Math.floor( (new Date(collection.end_date).getTime() - new Date(collection.start_date).getTime()) / (1000 * 60 * 60 * 24) ) + 1} days

{/if}
{#if type == 'link'} {:else}
{/if}