var __assign = this && this.__assign || function () {
  __assign = Object.assign || function (t) {
    for (var s, i = 1, n = arguments.length; i < n; i++) {
      s = arguments[i];

      for (var p in s) {
        if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
      }
    }

    return t;
  };

  return __assign.apply(this, arguments);
};

import { jsx as _jsx } from "react/jsx-runtime";
import * as React from 'react';
import Tree from "../tree";
import Scrollbar from "../scrollbar";
import "./style/side-menu.css";
var prefixCls = 'dmc-side-menu';

var SideMenu = function SideMenu(_a) {
  var treeProps = _a.treeProps,
      className = _a.className,
      scrollbarProps = _a.scrollbarProps;
  return _jsx("div", __assign({
    className: prefixCls + " " + (className || '')
  }, {
    children: _jsx(Scrollbar, __assign({}, __assign({
      type: 'page-bg'
    }, scrollbarProps || {}), {
      children: _jsx(Tree, __assign({}, treeProps), void 0)
    }), void 0)
  }), void 0);
};

SideMenu.displayName = 'SideMenu';
export default SideMenu;
var SideMenuMemo = /*#__PURE__*/React.memo(SideMenu);
SideMenuMemo.displayName = 'SideMenuMemo';
export { SideMenuMemo };

