import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from 'react';
import { Tree } from '@alicloudfe/components';
import cls from 'classnames';

var BDesignTree = function BDesignTree(props) {
  var className = props.className,
      triangle = props.triangle,
      rest = _objectWithoutProperties(props, ["className", "triangle"]);

  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Tree, _extends({
    className: cls(className, {
      'b-design_tree__container': true,
      'next-show-triangle': triangle === true
    })
  }, rest)));
};

BDesignTree.Node = Tree.Node;
export default BDesignTree;