'use strict';

var React = require('react');
var Switch$1 = require('../../switch/Switch.js');
var useListItemControl = require('../useListItemControl.js');
var ListItemContext = require('../ListItemContext.js');
var jsxRuntime = require('react/jsx-runtime');

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

exports.Switch = Switch;
//# sourceMappingURL=ListItemSwitch.js.map
