"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _rating = _interopRequireDefault(require("@alifd/next/lib/rating"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
var _react = _interopRequireDefault(require("react"));
require("./index.scss");
var _excluded = ["dataList", "value", "size", "disabled", "onClick", "children"];
/**
 * 评分
 */

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 = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
  var _otherProps = otherProps || {};
  return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
    className: "rating"
  }, _otherProps, {
    onClick: onClick
  }), /*#__PURE__*/_react["default"].createElement(_rating["default"], {
    disabled: disabled,
    value: value,
    size: size
  }));
};
Rating.displayName = 'Rating';
var _default = exports["default"] = Rating;