'use strict';

var React = require('react');
var RadioButton = require('../../common/RadioButton/RadioButton.js');
var useListItemControl = require('../useListItemControl.js');
var ListItemContext = require('../ListItemContext.js');
var jsxRuntime = require('react/jsx-runtime');

const Radio = function (props) {
  const {
    baseItemProps
  } = useListItemControl.useListItemControl('radio', {
    ...props
  });
  const {
    ids,
    describedByIds
  } = React.useContext(ListItemContext.ListItemContext);
  return /*#__PURE__*/jsxRuntime.jsx(RadioButton.default, {
    ...props,
    "aria-describedby": describedByIds,
    className: "wds-list-item-control",
    disabled: baseItemProps.disabled,
    id: ids.control
  });
};
Radio.displayName = 'ListItem.Radio';

exports.Radio = Radio;
//# sourceMappingURL=ListItemRadio.js.map
