{step === 1 ? 'Back' : 'Previous'}
{#each [1,2,3] as s}
s}>
{/each}
{#if step < 3}
Next
{:else}
{saving ? 'Saving…' : 'Save trip'}
{/if}
{#if step === 1}
Trip details
Country
*
{#if errors.country}
{errors.country}
{/if}
Cities
*
{#if errors.cities}
{errors.cities}
{/if} {#if cities.length > 0}
{#each cities as c}
{c}
removeCity(c)}>×
{/each}
{/if}
Date
*
{#if errors.date}
{errors.date}
{/if}
Days
*
{#if errors.days}
{errors.days}
{/if}
Trip type
*
{#each ['solo','friends','family'] as t}
{t === 'solo' ? 'Solo' : t === 'friends' ? 'With friends' : 'With family'}
{/each}
{#if errors.tripType}
{errors.tripType}
{/if}
How did you get there?
*
{#each transportOptions as opt}
{opt.label}
{/each}
{#if errors.transport}
{errors.transport}
{/if}
{:else if step === 2}
Photos
Optional — add photos from your trip
(photos = p)} /> {:else}
Your memories
{#each questions as q, i}
{q}
{/each} {/if}