1 | import _extends from 'babel-runtime/helpers/extends';
|
2 | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
|
3 | import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
4 | import _inherits from 'babel-runtime/helpers/inherits';
|
5 | import React from 'react';
|
6 |
|
7 | import PanelGroup from './PanelGroup';
|
8 |
|
9 | var Accordion = function (_React$Component) {
|
10 | _inherits(Accordion, _React$Component);
|
11 |
|
12 | function Accordion() {
|
13 | _classCallCheck(this, Accordion);
|
14 |
|
15 | return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
16 | }
|
17 |
|
18 | Accordion.prototype.render = function render() {
|
19 | return React.createElement(
|
20 | PanelGroup,
|
21 | _extends({}, this.props, { accordion: true }),
|
22 | this.props.children
|
23 | );
|
24 | };
|
25 |
|
26 | return Accordion;
|
27 | }(React.Component);
|
28 |
|
29 | export default Accordion; |
\ | No newline at end of file |