// @flow
import PropTypes from 'prop-types';
import { textInputPropTypes } from '../text-input/text-input.proptypes';
import type { TextInputProps } from '../text-input/text-input.proptypes';

export type CurrencyInputProps = TextInputProps<number> & {
  currency: 'CAD' | 'USD' | 'GBP',
};

export const currencyInputPropTypes = {
  ...textInputPropTypes,
  currency: PropTypes.oneOf(['CAD', 'USD', 'GBP']).isRequired,
  value: PropTypes.number,
  placeholder: PropTypes.number,
};
