"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "SideNavBarItem", {
    enumerable: true,
    get: function() {
        return SideNavBarItem;
    }
});
var _interop_require_default = require("@swc/helpers/_/_interop_require_default");
var _object_spread = require("@swc/helpers/_/_object_spread");
var _object_without_properties = require("@swc/helpers/_/_object_without_properties");
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
var SideNavBarItem = function SideNavBarItem(props) {
    var classPrefix = 'nut-subsidenavbar';
    var title = props.title, value = props.value, children = props.children, onClick = props.onClick, rest = (0, _object_without_properties._)(props, [
        "title",
        "value",
        "children",
        "onClick"
    ]);
    var clickFn = function clickFn(e) {
        e.stopPropagation();
        onClick && onClick({
            title: title,
            value: value
        });
    };
    return /*#__PURE__*/ _react.default.createElement("div", (0, _object_spread._)({
        className: "".concat(classPrefix, "-item ").concat(classPrefix, "-border-bt"),
        onClick: clickFn
    }, rest), title);
};
