// @flow
import { type Node } from 'react';
import type { TranslatedContent } from '../../../types';

export type SearchInputProps = {
  onChange: string => void,
  handleClear?: void => void,
  searchInput?: string,
  iconPosition?: string,
  searchResults: Array<{ id: string, text: string, isSeparator?: boolean }>,
  onSearchResultClicked?: (?string, ?string) => void,
  label: TranslatedContent,
  allowNotFound?: boolean,
  notFoundText?: TranslatedContent,
  hideLabel?: boolean,
  large?: boolean,
  bold?: boolean,
  selected?: boolean,
  placeholder?: string,
  value?: string, // default value
  focusOnMount?: boolean,
  renderItem?: ({ id: string, text: string, isSeparator?: boolean }) => Node,
};
