// @flow
import PropTypes from 'prop-types';
import { linkPropTypes } from '../../typography/link/link.proptypes';
import type { LinkProps } from '../../typography/link/link.proptypes';

export type IconType = 'add' | 'small-arrow-right';

export type IconPosition = 'left' | 'right';

export type TextIconButtonProps = LinkProps & {
  icon: IconType,
  position: IconPosition,
};

export const textIconButtonProptypes = {
  ...linkPropTypes,
  icon: PropTypes.oneOf(['add', 'small-arrow-right']),
  position: PropTypes.oneOf(['left', 'right']),
};
