// @flow
import PropTypes from 'prop-types';

export type SegmentedControlItemProps = {
  value: string | number,
  children: string,
};

export type SegmentedControlButtonProps = {
  selected?: boolean,
  value: string | number,
  children: string,
};

export const segmentedControlItemPropTypes = {
  value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
  children: PropTypes.any.isRequired,
};
