// @flow
import type { TranslatedContent } from '../../../types';
import type { FormInputProps } from '../form-input/form-input.proptypes';
import type { MaskedTextInputOptions } from '../masked-text-input/masked-text-input.proptypes';

type LabelProps = {|
  label: TranslatedContent,
|};

export type TextInputProps<ValueType> = {|
  ...LabelProps,
  ...FormInputProps<ValueType>,
  iconType?: 'lock' | 'error' | 'checkmark',
  disabled?: boolean,
  hideLabel?: boolean,
  large?: boolean,
  className?: string,
  mask?: boolean,
  maskOptions?: MaskedTextInputOptions,
  name?: string,
|};
