+
+ {year}
+
+
+ {cellsFor(viewScale, year).map(cell => {
+ const produced = anchorOf(
+ periodOf(cell.date, viewScale),
+ trailingValue
+ );
+ const unavailable = !isPeriodAvailable(
+ cell.date,
+ viewScale
+ );
+ return (
+
+ );
+ })}
+
+
+ ))}
+ >
+ )
+ } as useRender.ComponentProps<'div'>,
+ props
+ )
+ });
+
+ /* Sibling views all mount; each gates on the active scale, so `.Quarters`
+ can stand alone with no day grid in the tree. */
+ return isActive ? element : null;
+}
+
+export function CalendarPreviewMonths(props: CalendarPreviewPeriodViewProps) {
+ return (
+