import React from "react";
import classNames from "classnames";
import { View } from "@tarojs/components";
import { mergeProps } from "../../utils/merge-props";
var defaultProps = {
    title: '',
    value: '',
    disabled: false
};
export var SideBarItem = function(props) {
    var _mergeProps = mergeProps(defaultProps, props), children = _mergeProps.children, className = _mergeProps.className, disabled = _mergeProps.disabled;
    var classPrefix = 'nut-sidebaritem';
    var classes = classNames(classPrefix, {
        active: !disabled && props.active
    }, className);
    return children ? /*#__PURE__*/ React.createElement(View, {
        className: classes
    }, !disabled && children) : null;
};
