Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
narrowWeekdayFormat,
selectedDate,
disabledDates,
disabledDays,
firstDayOfWeek,
max,
min,
showWeekNumber,
weekLabel,
weekNumberType,
} = options;
const minTime = min == null ? Number.MIN_SAFE_INTEGER : +min;
const maxTime = max == null ? Number.MAX_SAFE_INTEGER : +max;
const weekdays = getWeekdays({
longWeekdayFormat,
narrowWeekdayFormat,
firstDayOfWeek,
showWeekNumber,
weekLabel,
});
const getKey = (date: Date) => [
locale,
date.toJSON(),
disabledDates?.join('_'),
disabledDays?.join('_'),
firstDayOfWeek,
max?.toJSON(),
min?.toJSON(),
showWeekNumber,
weekLabel,