+ {/* Month Navigation */}
+
+
+
+ {viewMonth.format('MMMM YYYY')}
+
+
+
+
+ {/* Weekdays */}
+
+ {WEEKDAYS.map((w) => (
+
{w}
+ ))}
+
+
+ {/* Calendar Grid */}
+
+ {cells.map((d) => {
+ const dateStr = d.format('YYYY-MM-DD');
+ const inMonth = d.month() === viewMonth.month();
+ const selected = isSelected(d);
+ const isTodayCell = dateStr === todayStr;
+ const endpoint = isRangeEndpoint(d);
+
+ return (
+
+ );
+ })}
+
+
+ {/* Quick Presets */}
+
+
+
+
+
+ {allowAll && (
+
+ )}
+
+
+