+ e.stopPropagation()}
+ onKeyDown={(e) => e.stopPropagation()}
+ >
+ Last
+ setCustomDays(e.target.value)}
+ onKeyDown={(e) => {
+ if (e.key === 'Enter') {
+ e.preventDefault();
+ const days = Number(customDays);
+ if (Number.isInteger(days) && days >= 1 && days <= 365) {
+ handleCustomDays(days);
+ setCustomDays('');
+ }
+ }
+ e.stopPropagation();
+ }}
+ className="h-7 w-16 text-center"
+ />
+ days
+
handleCustom()}>
{timeWindows.custom.label}