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 classNames from 'classnames';
import "./style/side-nav.css";
var prefixCls = 'dmc-side-nav';

var SideNav = function SideNav(props) {
  var _a;

  var className = props.className,
      style = props.style,
      children = props.children,
      ghost = props.ghost,
      type = props.type;
  var cls = classNames(prefixCls, (_a = {}, _a[prefixCls + "-ghost"] = ghost, _a[prefixCls + "-" + type] = type, _a), className);
  return _jsx("div", __assign({
    className: cls,
    style: style
  }, {
    children: children
  }), void 0);
};

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

