"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.TabPanel = void 0;
var _compat = _interopRequireDefault(require("preact/compat"));
var _classnames = _interopRequireDefault(require("classnames"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var TabPanel = function TabPanel(props) {
  var classes = (0, _classnames.default)('ds-c-tabs__panel', props.className);
  return /*#__PURE__*/_compat.default.createElement("div", {
    "aria-labelledby": props.tabId,
    "aria-hidden": !props.selected,
    "aria-disabled": props.disabled,
    className: classes,
    id: props.id,
    role: "tabpanel"
  }, props.children);
};

// Set component name to make child.type.displayName available to other components (eg. Tab)
exports.TabPanel = TabPanel;
TabPanel.displayName = 'TabPanel';
TabPanel.defaultProps = {
  selected: false
};
var _default = TabPanel;
exports.default = _default;