{t('event.myEventsTitle')}
{#if userEvents.length === 0}
🎉

{t('event.noEventsYetTitle')}

{t('event.noEventsYetDescription')}

{:else}

{t('event.myEventsTitle')} ({userEvents.length})

{t('event.myEventsDescription')}

{#each userEvents as event, i (i)}

{event.name}

{formatDate(event.date)} {t('common.atTime')} {formatTime(event.time)}
{#if event.location_type === 'none'} N/A {:else if event.location_type === 'maps' && event.location_url} Google Maps {:else} {event.location} {/if}
{event.type === 'limited' ? t('common.limited') : t('common.unlimited')} {t(`common.${event.visibility}`)}
{/each}
{/if}
{#if showDeleteModal && eventToDelete}
🗑️

{t('event.deleteEventTitle')}

{t('event.deleteEventDescription', { eventName: eventToDelete.name })}

{/if}