import _pt from "prop-types";
import React from 'react';
import classnames from 'classnames';
export var TabPanel = function TabPanel(props) {
  var classes = classnames('ds-c-tabs__panel', props.className);
  return /*#__PURE__*/React.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)

TabPanel.propTypes = {
  children: _pt.node.isRequired,

  /**
     * Additional classes to be added to the root element.
     */
  className: _pt.string,

  /**
     * A unique `id`, to be used on the rendered panel element.
     */
  id: _pt.string.isRequired,
  selected: _pt.bool,
  disabled: _pt.bool,

  /**
     * The associated tab's label. Only applicable when the panel is a
     * child of `Tabs`.
     */
  tab: _pt.string,

  /**
     * Additional classes for the associated tab. Only applicable when the panel
     * is a child of `Tabs`.
     */
  tabClassName: _pt.string,

  /**
     * The associated tab's `href`. Only applicable when the panel is a
     * child of `Tabs`.
     */
  tabHref: _pt.string,

  /**
     * The `id` of the associated `Tab`. Used for the `aria-labelledby` attribute.
     */

  /* though it's ultimately being passed in.*/

  /* this id within the Tabs component. Otherwise React will yell at you even*/

  /* tabId is actually required, but it's not marked here since we generate*/
  tabId: _pt.string
};
TabPanel.displayName = 'TabPanel';
TabPanel.defaultProps = {
  selected: false
};
export default TabPanel;