{#if showPopup}
Add new memory
Load from past trips
Select location
{#each tripOptions as opt}
{opt.label}
{/each}
+ Enter custom trip
{#if isCustomLocation()}
Custom Location
{#if showLocationError}
Please enter a location.
{/if}
Start Date
End Date
{:else if showLocationError}
Please enter a location.
{/if}
Upload images
document.getElementById('fileInput')?.click()}> {#if images.length === 0}
Drop image here
{:else}
{#each images as img, i}
removeImage(img)}>×
{img.name}
{/each}
{/if}
{#if isUploading}
Uploading...
{/if}
{#if showImageError}
Please upload at least one image.
{/if}
{/if}