"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _jsxRuntime = require("react/jsx-runtime");
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
/* eslint-disable react/no-unused-prop-types */

/**
 * `Tab` is an individual element of the [Tabs](#!/Tabs) component.
 *
 * Each `Tab` can display an icon near the tab name for easier identification.
 * It can also display a [Label](#!/Label) next to the tab name for showing additional information about its content.
 * You can make `Tabs` closeable, for example, if you are using them for opening and displaying files.
 * @since 0.0.35
 */const Tab = _ref => {
  let {
    children
  } = _ref;
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
    children: children
  });
};
Tab.propTypes = {
  /**
   * Tab title
   * @since 0.0.35
   */
  title: _propTypes.default.node.isRequired,
  /**
   * Label in tab title
   * @since 0.0.42
   */
  label: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]),
  /**
   * Name of icon or Icon component for tab
   * @since 0.0.42
   */
  icon: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]),
  /**
   * Activate callback.
   * @since 0.0.43
   */
  onActivate: _propTypes.default.func,
  /**
   * Close callback
   * @since 0.0.58
   */
  onClose: _propTypes.default.func,
  /**
   * Component to render as the root element.
   * @since 2.5.1
   */
  component: _propTypes.default.elementType,
  /**
   * Tab content
   * @since 0.0.47
   */
  children: _propTypes.default.node
};
Tab.defaultProps = {
  label: undefined,
  icon: undefined,
  onActivate: undefined,
  onClose: undefined,
  children: undefined,
  component: undefined
};
var _default = exports.default = Tab;