"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 _classnames = _interopRequireDefault(require("classnames"));

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

// import { } from '@alifd/next';
var BDesignNav = function BDesignNav(props) {
  var className = props.className,
      onlyiconNotext = props.onlyiconNotext,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "onlyiconNotext"]);
  return /*#__PURE__*/_react.default.createElement(_components.Nav, (0, _extends2.default)({
    className: (0, _classnames.default)(className, {
      'onlyiconNotext': onlyiconNotext === true
    })
  }, rest));
};

BDesignNav.Group = _components.Nav.Group;
BDesignNav.Item = _components.Nav.Item;
BDesignNav.PopupItem = _components.Nav.PopupItem;
BDesignNav.SubNav = _components.Nav.SubNav;
var _default = BDesignNav; // onlyiconNotext

exports.default = _default;