"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 BDesignTree = function BDesignTree(props) {
  var className = props.className,
      triangle = props.triangle,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "triangle"]);
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_components.Tree, (0, _extends2.default)({
    className: (0, _classnames.default)(className, {
      'b-design_tree__container': true,
      'next-show-triangle': triangle === true
    })
  }, rest)));
};

BDesignTree.Node = _components.Tree.Node;
var _default = BDesignTree;
exports.default = _default;