'use strict';

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

const CheckboxOption = /*#__PURE__*/React.forwardRef(({
  checked,
  disabled,
  onChange,
  ...rest
}, reference) => {
  return /*#__PURE__*/jsxRuntime.jsx(Option, {
    ...rest,
    ref: reference,
    disabled: disabled,
    button: /*#__PURE__*/jsxRuntime.jsx(CheckboxButton, {
      checked: checked,
      disabled: disabled,
      onChange: () => onChange?.(!checked)
    })
  });
});

module.exports = CheckboxOption;
//# sourceMappingURL=CheckboxOption.js.map
