import Autocomplete , { Props as AutocompleteProps } from './Autocomplete' ; interface Props extends Omit < AutocompleteProps < string > , 'getData' | 'onSelect' > { } const id = < T > ( x ) => x ; const SimpleAutocomplete = ( { value = '' , ... rest } ) => { return < Autocomplete { ... rest } value = { value } onSelect = { rest . onChange } getData = { id } / > ; } ; export default SimpleAutocomplete ;