Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{({
getInputProps,
getMenuProps,
getItemProps,
getToggleButtonProps,
clearSelection,
highlightedIndex,
openMenu,
setHighlightedIndex,
isOpen,
inputValue,
}) => {
const calendarItems = createCalendarItems(
this.state.calendarDate,
this.props.intl
);
const allItems = [...this.state.suggestedItems, ...calendarItems];
const paddingDayCount = getPaddingDayCount(this.state.calendarDate);
const paddingDays = Array(paddingDayCount).fill();
const weekdays = getWeekdayNames(this.props.intl.locale);
const today = getToday();
return (
<div>
</div>{({
getInputProps,
getMenuProps,
getItemProps,
getToggleButtonProps,
clearSelection,
highlightedIndex: downshiftHighlightedIndex,
openMenu,
setHighlightedIndex: setDownshiftHighlightedIndex,
selectedItem,
isOpen,
inputValue,
}) => {
const calendarItems = createCalendarItems(calendarDate, intl);
const paddingDayCount = getPaddingDayCount(calendarDate, intl.locale);
const paddingDays = Array(paddingDayCount).fill();
const weekdays = getWeekdayNames(intl.locale);
const today = getToday();
return (
<div>
</div>