Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
inputRef: PropTypes.func,
variant: PropTypes.oneOf(['standard','filled','outlined']),
// Menu
getListItem: PropTypes.func,
getListItemKey: PropTypes.func,
showEmpty: PropTypes.bool,
includeFooter: PropTypes.bool,
getInfiniteLoaderProps: PropTypes.func,
getVirtualListProps: PropTypes.func,
menuHeight: PropTypes.number,
menuItemCount: PropTypes.number,
};
export const stateChangeTypes = Downshift.stateChangeTypes;
export const resetIdCounter = Downshift.resetIdCounter;
export default MuiDownshift;
function AutoComplete(props) {
const [findItems, { loading, data }] = useLazyQuery(SEARCH_ITEMS_QUERY);
const items = data ? data.allItems : [];
const findItemsButChill = debounce(findItems, 350);
resetIdCounter();
return (
(item === null ? '' : item.name)}
>
{({
getInputProps,
getItemProps,
isOpen,
inputValue,
highlightedIndex,
}) => (
<div>
</div>