/** * @prettier * @flow */ import { InputAdornmentProps } from '@material-ui/core/InputAdornment'; export interface IProps { suggestions: any[]; suggestionsLoading?: boolean; suggestionsLoaded?: boolean; suggestionsError?: boolean; apiLoading?: boolean; color?: string; value?: string; placeholder?: string; startAdornment?: React.ComponentType; disableUnderline?: boolean; onChange?: (event: SyntheticKeyboardEvent, { newValue: string, method: string }) => void; onSuggestionsFetch?: ({ value: string }) => Promise; onCleanSuggestions?: () => void; onClick?: (event: SyntheticKeyboardEvent, { suggestionValue: any[], method: string }) => void; onKeyDown?: (event: SyntheticKeyboardEvent) => void; onBlur?: (event: SyntheticKeyboardEvent) => void; } export interface IInputField { color: string; }