{#each daysOfWeek as day (day)}
{day}
{/each} {#each hours as hour (hour)}
{formatHour(hour)}
{#each daysOfWeek as _, dayIndex}
{#each actions as action (action.id)} {#if getDayOfWeek(action.timestamp) === dayIndex && getHourOfDay(action.timestamp) === hour}
{#if action.type == 'awake'} {:else if action.type == 'asleep'} {:else if action.type == 'food'} {:else if action.type == 'diaper'} {:else if action.type == 'poop'} {/if} {formatTime(action.timestamp)}
{/if} {/each}
{/each} {/each}