"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "SideBarItem", {
    enumerable: true,
    get: function() {
        return SideBarItem;
    }
});
var _interop_require_default = require("@swc/helpers/_/_interop_require_default");
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames"));
var _components = require("@tarojs/components");
var _mergeprops = require("../../utils/merge-props");
var defaultProps = {
    title: '',
    value: '',
    disabled: false
};
var SideBarItem = function SideBarItem(props) {
    var _mergeProps = (0, _mergeprops.mergeProps)(defaultProps, props), children = _mergeProps.children, className = _mergeProps.className, disabled = _mergeProps.disabled;
    var classPrefix = 'nut-sidebaritem';
    var classes = (0, _classnames.default)(classPrefix, {
        active: !disabled && props.active
    }, className);
    return children ? /*#__PURE__*/ _react.default.createElement(_components.View, {
        className: classes
    }, !disabled && children) : null;
};
