text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  const tslib_1 = require("tslib");
  const React = tslib_1.__importStar(require("react"));
  const react_styles_1 = require("@patternfly/react-styles");
  const TabContentBase = (_a) => {
      var { id, activeKey, 'aria-label': ariaLabel, child, children, className, eventKey, innerRef } = _a, props = tslib_1.__rest(_a, ["id", "activeKey", 'aria-label', "child", "children", "className", "eventKey", "innerRef"]);
      if (children || child) {
          let labelledBy;
          if (ariaLabel) {
              labelledBy = null;
          }
          else {
              labelledBy = children ? `pf-tab-${eventKey}-${id}` : `pf-tab-${child.props.eventKey}-${id}`;
          }
          return (React.createElement("section", Object.assign({ ref: innerRef, hidden: children ? null : child.props.eventKey !== activeKey, className: children ? react_styles_1.css('pf-c-tab-content', className) : react_styles_1.css('pf-c-tab-content', child.props.className), id: children ? id : `pf-tab-section-${child.props.eventKey}-${id}`, "aria-label": ariaLabel, "aria-labelledby": labelledBy, role: "tabpanel", tabIndex: 0 }, props), children || child.props.children));
      }
      return null;
  };
  exports.TabContent = React.forwardRef((props, ref) => (React.createElement(TabContentBase, Object.assign({}, props, { innerRef: ref }))));
  //# sourceMappingURL=TabContent.js.map