"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "TabPane", {
    enumerable: true,
    get: function() {
        return TabPane;
    }
});
var _interop_require_default = require("@swc/helpers/_/_interop_require_default");
var _object_spread = require("@swc/helpers/_/_object_spread");
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames"));
var _components = require("@tarojs/components");
var defaultProps = {
    title: '',
    value: '',
    disabled: false
};
var TabPane = function TabPane(props) {
    var _$_object_spread = (0, _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 = (0, _classnames.default)(classPrefix, {
        active: !disabled && props.active
    }, autoHeightClassName, className);
    return children ? /*#__PURE__*/ _react.default.createElement(_components.View, {
        className: classes
    }, !disabled && children) : null;
};
