Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
isDateSelected,
isFirstOrLastSelectedDate,
isDateHovered,
firstDayOfWeek,
onDateSelect,
onResetDates,
goToPreviousMonths,
goToNextMonths,
numberOfMonths,
hoveredDate,
onDateHover,
isDateFocused,
focusedDate,
onDateFocus,
isDateBlocked: isDateBlockedFn,
} = useDatepicker({
startDate,
endDate,
focusedInput,
onDatesChange,
minBookingDate,
maxBookingDate,
minBookingDays,
isDateBlocked,
exactMinBookingDays,
unavailableDates,
initialVisibleMonth,
numberOfMonths: numberOfMonthsProp,
firstDayOfWeek: firstDayOfWeekProp,
})
useImperativeHandle(ref, () => ({
onDateSelect: (date: Date) => {