import _extends from "@babel/runtime/helpers/extends";
import _Radio from "@alifd/next/es/radio";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["className", "id", "style", "checked", "defaultChecked", "label", "disabled", "value", "name", "data", "type", "size", "isPreview"];
/* eslint-disable @typescript-eslint/no-shadow */
import * as React from 'react';
import "./index.less";
// import InfiniteScroll from 'react-infinite-scroll-component';

var myRadio = function myRadio(_ref) {
  var className = _ref.className,
    id = _ref.id,
    style = _ref.style,
    checked = _ref.checked,
    defaultChecked = _ref.defaultChecked,
    label = _ref.label,
    disabled = _ref.disabled,
    value = _ref.value,
    name = _ref.name,
    data = _ref.data,
    type = _ref.type,
    size = _ref.size,
    isPreview = _ref.isPreview,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  var RadioGroup = _Radio.Group;
  if (type === 'button') {
    type = 'button';
  }
  return type === '有边框' ? /*#__PURE__*/React.createElement(RadioGroup, _extends({
    className: "border",
    value: value,
    style: style,
    disabled: disabled,
    "aria-labelledby": "groupId",
    dataSource: data,
    shape: type,
    size: size
  }, otherProps)) : /*#__PURE__*/React.createElement(RadioGroup, _extends({
    value: value,
    style: style,
    disabled: disabled,
    "aria-labelledby": "groupId",
    dataSource: data,
    shape: type,
    size: size
  }, otherProps));
};
myRadio.displayName = 'myRadio';
export default myRadio;