// @flow
import type { Element } from 'react';
import PropTypes from 'prop-types';
import { translatedContentPropType } from '../../../types';

export type RadioButtonProps = {
  id: string,
  name?: string,
  selected?: boolean,
  text?: string | Element<*>,
  onClick: string => void,
};

export const radioButtonPropTypes = {
  id: PropTypes.string,
  name: PropTypes.string,
  selected: PropTypes.bool,
  text: translatedContentPropType,
  onClick: PropTypes.func.isRequired,
};
