import _extends from "@babel/runtime/helpers/extends";
import _Rating from "@alifd/next/es/rating";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["dataList", "value", "size", "disabled", "onClick", "children"];
import React from 'react';
import "./index.scss";
/**
 * 评分
 */

var Rating = function Rating(_ref) {
  var dataList = _ref.dataList,
    value = _ref.value,
    size = _ref.size,
    disabled = _ref.disabled,
    onClick = _ref.onClick,
    children = _ref.children,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  var _otherProps = otherProps || {};
  return /*#__PURE__*/React.createElement("div", _extends({
    className: "rating"
  }, _otherProps, {
    onClick: onClick
  }), /*#__PURE__*/React.createElement(_Rating, {
    disabled: disabled,
    value: value,
    size: size
  }));
};
Rating.displayName = 'Rating';
export default Rating;