import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
import React from "react";
export var SideNavBarItem = function(props) {
    var classPrefix = 'nut-subsidenavbar';
    var title = props.title, value = props.value, children = props.children, onClick = props.onClick, rest = _object_without_properties(props, [
        "title",
        "value",
        "children",
        "onClick"
    ]);
    var clickFn = function(e) {
        e.stopPropagation();
        onClick && onClick({
            title: title,
            value: value
        });
    };
    return /*#__PURE__*/ React.createElement("div", _object_spread({
        className: "".concat(classPrefix, "-item ").concat(classPrefix, "-border-bt"),
        onClick: clickFn
    }, rest), title);
};
