+
+ {DAYS.map((day) => (
+
+ {day}
+
+ ))}
+
+
+
+ {days.map((date, index) => {
+ const isBeforeToday = date < new Date();
+ const isInRange =
+ dateState.startDate &&
+ dateState.selectedDate &&
+ date > dateState.startDate &&
+ date < dateState.selectedDate;
+ const isStartOrEnd =
+ (dateState.startDate &&
+ format(dateState.startDate, "yyyy-MM-dd") ===
+ format(date, "yyyy-MM-dd")) ||
+ (dateState.selectedDate &&
+ format(dateState.selectedDate, "yyyy-MM-dd") ===
+ format(date, "yyyy-MM-dd"));
+
+ return (
+
+ );
+ })}
+
+