'use strict';

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

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

exports.Checkbox = Checkbox;
//# sourceMappingURL=ListItemCheckbox.js.map
