+
+
+ {
+ onCustomStartDateChange(date);
+ if (date && customEndDate && date > customEndDate) {
+ onCustomEndDateChange(undefined);
+ }
+ }}
+ locale={fr}
+ />
+
+
+
+ {
+ if (date && customStartDate && date < customStartDate) {
+ return;
+ }
+ onCustomEndDateChange(date);
+ if (date && customStartDate) {
+ onCustomDatePickerOpenChange(false);
+ }
+ }}
+ disabled={(date) => {
+ if (!customStartDate) return true;
+ return date < customStartDate;
+ }}
+ locale={fr}
+ />
+
+ {customStartDate && customEndDate && (
+
+
+
+
+ )}
+
+