import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
import React from "react";
import classNames from "classnames";
import { View } from "@tarojs/components";
var defaultProps = {
    title: '',
    value: '',
    disabled: false
};
export var TabPane = function(props) {
    var _$_object_spread = _object_spread({}, defaultProps, props), children = _$_object_spread.children, autoHeightClassName = _$_object_spread.autoHeightClassName, className = _$_object_spread.className, disabled = _$_object_spread.disabled;
    var classPrefix = 'nut-tabpane';
    var classes = classNames(classPrefix, {
        active: !disabled && props.active
    }, autoHeightClassName, className);
    return children ? /*#__PURE__*/ React.createElement(View, {
        className: classes
    }, !disabled && children) : null;
};
