"use strict";

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

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

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

var _precls = _interopRequireDefault(require("../precls"));

require("./index.css");

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

function _default(props) {
  var onExpand = props.onExpand,
      data = props.data;

  var onExpandHander = function onExpandHander(e) {
    onExpand(e);
  };

  return /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])("".concat(_precls["default"], "__parent-menu-node")),
    onClick: onExpandHander,
    title: ""
  }, data.icon && /*#__PURE__*/_react["default"].createElement("span", {
    className: (0, _classnames["default"])("".concat(_precls["default"], "__parent-menu-node-icon"), data.icon)
  }), /*#__PURE__*/_react["default"].createElement("span", {
    className: (0, _classnames["default"])("".concat(_precls["default"], "__parent-menu-node-title"), "noselect")
  }, props.title));
}