'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

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

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

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