"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(require("react"));

var _consoleComponents = require("@alicloud/console-components");

var _classnames = _interopRequireDefault(require("classnames"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var NavCollapseTrigger = function NavCollapseTrigger(_a) {
  var collapsed = _a.collapsed,
      onClick = _a.onClick;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "nav-collapse-trigger-wrapper"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "nav-collapse-trigger-container",
    onClick: onClick
  }, /*#__PURE__*/_react["default"].createElement("span", {
    className: (0, _classnames["default"])("nav-collapse-trigger", {
      "hide": collapsed
    })
  }, /*#__PURE__*/_react["default"].createElement(_consoleComponents.Icon, {
    className: "nav-collapse-trigger-icon",
    type: "arrow-left",
    size: "xs"
  }))));
};

var _default = NavCollapseTrigger;
exports["default"] = _default;