UNPKG

839 BJavaScriptView Raw
1import _extends from 'babel-runtime/helpers/extends';
2import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
3import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
4import _inherits from 'babel-runtime/helpers/inherits';
5import React from 'react';
6
7import PanelGroup from './PanelGroup';
8
9var 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
29export default Accordion;
\No newline at end of file