import React, { useCallback } from 'react'; import { QueryClientProvider } from 'react-query'; import PropTypes from 'prop-types'; import ComboSearch from './ComboSearch'; import { queryClient } from './shared/queryClient'; function ComboAdresseSearch({ mandatory, placeholder, hiddenFieldId, onChange, transformResult = ({ properties: { label } }) => [label, label], allowInputValues = true, className }) { const transformResults = useCallback((_, { features }) => features); return ( ); } ComboAdresseSearch.propTypes = { className: PropTypes.string, placeholder: PropTypes.string, mandatory: PropTypes.bool, hiddenFieldId: PropTypes.string, transformResult: PropTypes.func, allowInputValues: PropTypes.bool, onChange: PropTypes.func }; export default ComboAdresseSearch;