{#if registrationsOfUser?.edges.length > 0 && !$page.url.pathname.startsWith('/bookings')}
{@const registration = registrationsOfUser.edges[0].node}
{#if shouldShowBooking($hiddenBookings, registration)}
C'est {#if isFuture(registration.ticket.event.startsAt)}
dans {formatDistanceToNow(registration.ticket.event.startsAt, {
locale: fr,
}).replace('environ ', '')}{:else}maintenant{/if}! Voici ta place