import React from 'react' import type { AutocompleteProps } from '@toptal/picasso-autocomplete' import { Autocomplete as PicassoAutocomplete } from '@toptal/picasso-autocomplete' import type { FieldProps } from '../Field' import type { Props as FieldLabelProps } from '../FieldLabel' import FieldLabel from '../FieldLabel' import InputField from '../InputField' export type Props = AutocompleteProps & FieldProps & FieldLabelProps export const Autocomplete = (props: Props) => { const { label, labelEndAdornment, titleCase, ...rest } = props return ( {...rest} label={ label ? ( ) : null } > {(inputProps: AutocompleteProps) => { return }} ) } Autocomplete.displayName = 'Autocomplete' export default Autocomplete