"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

var _react = _interopRequireDefault(require("react"));

var _components = require("@alicloudfe/components");

var _classnames = _interopRequireDefault(require("classnames"));

var BDesignCard = function BDesignCard(props) {
  var className = props.className,
      radius = props.radius,
      level = props.level,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "radius", "level"]);
  var levelCls = '';
  var radiusCls = '';

  if (radius) {
    radiusCls = 'next-card-radius-' + radius;
  }

  if (level) {
    levelCls = 'next-card-level-' + level;
  }

  return /*#__PURE__*/_react.default.createElement(_components.Card, (0, _extends2.default)({
    className: (0, _classnames.default)(className, radiusCls, levelCls)
  }, rest));
};

BDesignCard.Actions = _components.Card.Actions;
BDesignCard.Content = _components.Card.Content;
BDesignCard.Divider = _components.Card.Divider;
BDesignCard.DropDownActions = _components.Card.DropDownActions;
BDesignCard.Header = _components.Card.Header;
BDesignCard.Media = _components.Card.Media; // TODO：后续确认下
// BDesignCard.CollapsableHead = Card.CollapsableHead;
// BDesignCard.CollapsableTail = Card.CollapsableTail;

var _default = BDesignCard;
exports.default = _default;