UNPKG

946 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
7/* eslint-disable react/require-render-return, react/no-unused-prop-types */
8var Tab = /*#__PURE__*/function (_React$Component) {
9 _inheritsLoose(Tab, _React$Component);
10
11 function Tab() {
12 return _React$Component.apply(this, arguments) || this;
13 }
14
15 var _proto = Tab.prototype;
16
17 _proto.render = function render() {
18 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');
19 return null;
20 };
21
22 return Tab;
23}(React.Component);
24
25Tab.Container = TabContainer;
26Tab.Content = TabContent;
27Tab.Pane = TabPane;
28export default Tab;
\No newline at end of file