{title}
{#if trips.length > 0}
view = 'tile'} title="Tile view" class="rounded p-1.5 transition-colors" style={view === 'tile' ? 'background:#fff; box-shadow:0 1px 2px rgba(0,0,0,0.08);' : ''} >
view = 'table'} title="Table view" class="rounded p-1.5 transition-colors" style={view === 'table' ? 'background:#fff; box-shadow:0 1px 2px rgba(0,0,0,0.08);' : ''} >
{/if}
{#if trips.length === 0}
{emptyMessage}
{:else if view === 'tile'}
{#each trips as trip}
{/each}
{:else}
{/if}