import _Checkbox from "@alifd/next/es/checkbox";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["style", "label", "disabled", "checked", "indeterminate", "value", "type", "defaultChecked"];
import * as React from 'react';
var Checkoption = function Checkoption(_ref) {
  var _ref$style = _ref.style,
    style = _ref$style === void 0 ? {} : _ref$style,
    label = _ref.label,
    disabled = _ref.disabled,
    checked = _ref.checked,
    indeterminate = _ref.indeterminate,
    value = _ref.value,
    _ref$type = _ref.type,
    type = _ref$type === void 0 ? "默认" : _ref$type,
    defaultChecked = _ref.defaultChecked,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  var _style = style || {};
  var _otherProps = otherProps || {};
  _otherProps.style = _style;
  if (type == '默认') {
    return /*#__PURE__*/React.createElement(_Checkbox, _extends({
      label: label,
      defaultChecked: defaultChecked,
      checked: checked,
      disabled: disabled,
      indeterminate: indeterminate
      // value={value}
    }, otherProps));
  }
  if (type == '可控值') {
    return /*#__PURE__*/React.createElement(_Checkbox, _extends({
      label: label,
      defaultChecked: defaultChecked,
      checked: checked,
      disabled: disabled,
      indeterminate: indeterminate
      // value={value}
    }, otherProps));
  }
};
Checkoption.displayName = 'Checkoption';
export default Checkoption;