{#each filterRenderable(monthGroup.dayGroups) as dayGroup, groupIndex (dayGroup.day)} {@const isDayGroupSelected = assetInteraction.selectedGroup.has(dayGroup.groupTitle)} (hoveredDayGroup = dayGroup.groupTitle)} onmouseleave={() => (hoveredDayGroup = null)} > {#if !singleSelect} onDayGroupSelect(dayGroup, assetsSnapshot(dayGroup.getAssets()))} onkeydown={() => onDayGroupSelect(dayGroup, assetsSnapshot(dayGroup.getAssets()))} > {#if isDayGroupSelected} {:else} {/if} {/if} {dayGroup.groupTitle} {#snippet thumbnail({ asset, position, intersecting })} {@render thumbnailWithGroup({ asset, position, dayGroup, groupIndex, intersecting })} {/snippet} {/each}