UNPKG

930 BJavaScriptView Raw
1import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
2import React from 'react';
3import TabContainer from './TabContainer';
4import TabContent from './TabContent';
5import TabPane from './TabPane';
6/* eslint-disable react/require-render-return, react/no-unused-prop-types */
7
8var Tab =
9/*#__PURE__*/
10function (_React$Component) {
11 _inheritsLoose(Tab, _React$Component);
12
13 function Tab() {
14 return _React$Component.apply(this, arguments) || this;
15 }
16
17 var _proto = Tab.prototype;
18
19 _proto.render = function render() {
20 throw new Error('ReactBootstrap: The `Tab` component is not meant to be rendered! ' + "It's an abstract component that is only valid as a direct Child of the `Tabs` Component. " + 'For custom tabs components use TabPane and TabsContainer directly');
21 };
22
23 return Tab;
24}(React.Component);
25
26Tab.Container = TabContainer;
27Tab.Content = TabContent;
28Tab.Pane = TabPane;
29export default Tab;
\No newline at end of file