import _Badge from "@alifd/next/es/badge";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["style", "children", "count", "overflowCount", "sizeFlag", "showZero", "dot", "content"];
import * as React from 'react';
import "./index.scss";
var BadgeName = function BadgeName(_ref) {
  var _ref$style = _ref.style,
    style = _ref$style === void 0 ? {} : _ref$style,
    children = _ref.children,
    count = _ref.count,
    overflowCount = _ref.overflowCount,
    _ref$sizeFlag = _ref.sizeFlag,
    sizeFlag = _ref$sizeFlag === void 0 ? true : _ref$sizeFlag,
    showZero = _ref.showZero,
    dot = _ref.dot,
    content = _ref.content,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  var _style = style || {};
  var _otherProps = otherProps || {};
  _otherProps.style = _style;
  if (count <= 0) count = 0;
  // console.log(sizeFlag, 65666);

  return /*#__PURE__*/React.createElement(_Badge, _extends({
    showZero: showZero,
    dot: dot,
    children: children,
    count: count,
    content: content
  }, otherProps, {
    overflowCount: overflowCount
  }));
};
BadgeName.displayName = 'BadgeName';
export default BadgeName;