{#if isWarningModalOpen} (isWarningModalOpen = false)} on:confirm={deleteTransportation} /> {/if}

{transportation.name}

{$t(`transportation.modes.${transportation.type}`)}
{#if transportation.from_location}
{$t('adventures.from')}:

{transportation.from_location}

{/if} {#if transportation.to_location}
{$t('adventures.to')}:

{transportation.to_location}

{/if}
{#if transportation.date}
{$t('adventures.start')}:

{new Date(transportation.date).toLocaleString(undefined, { timeZone: 'UTC' })}

{/if} {#if transportation.end_date}
{$t('adventures.end')}:

{new Date(transportation.end_date).toLocaleString(undefined, { timeZone: 'UTC' })}

{/if}
{#if transportation.user_id == user?.uuid || (collection && user && collection.shared_with.includes(user.uuid))}
{/if}