1 | import PropTypes from 'prop-types';
|
2 | import * as React from 'react';
|
3 | import TabContainer from './TabContainer';
|
4 | import TabContent from './TabContent';
|
5 | import TabPane from './TabPane';
|
6 | import { Fragment as _Fragment } from "react/jsx-runtime";
|
7 | import { jsx as _jsx } from "react/jsx-runtime";
|
8 |
|
9 |
|
10 | const propTypes = {
|
11 | eventKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
12 |
|
13 | |
14 |
|
15 |
|
16 | title: PropTypes.node.isRequired,
|
17 |
|
18 | |
19 |
|
20 |
|
21 | disabled: PropTypes.bool,
|
22 |
|
23 | |
24 |
|
25 |
|
26 | tabClassName: PropTypes.string,
|
27 |
|
28 | |
29 |
|
30 |
|
31 | tabAttrs: PropTypes.object
|
32 | };
|
33 |
|
34 | const Tab = () => {
|
35 | 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');
|
36 |
|
37 | return _jsx(_Fragment, {});
|
38 | };
|
39 |
|
40 | Tab.propTypes = propTypes;
|
41 | export default Object.assign(Tab, {
|
42 | Container: TabContainer,
|
43 | Content: TabContent,
|
44 | Pane: TabPane
|
45 | }); |
\ | No newline at end of file |