{headerTitle()}

{#if currentView === "month"}
{#each weekDays as day}
{day}
{/each} {#each days as day} {@const dayEvents = getEventsForDay(day)} {@const isToday = isSameDay(day, today)} {@const inMonth = isCurrentMonth(day)} {/each} {#if dayEvents.length > 3}

+{dayEvents.length - 3} more

{/if}
{/each}
{/if} {#if currentView === "week"}
{#each weekDates as day} {@const dayEvents = getEventsForDay(day)} {@const isToday = isSameDay(day, today)}
{weekDays[day.getDay()]}
{day.getDate()}
{#each dayEvents as event} {/each}
{/each}
{/if} {#if currentView === "day"} {@const dayEvents = getEventsForDay(currentDate)}
{#if dayEvents.length === 0}

No events for this day

{:else}
{#each dayEvents as event} {/each}
{/if}
{/if}