'use strict';

var React = require('react');
var context = require('../context-b369acb8.js');
require('../utils-58f8eea0.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

// Wraps all the accordions in an accordion set
function AccordionGroup(_ref) {
  let {
    children,
    className = ''
  } = _ref;
  const [opened, setOpened] = React.useState('');
  return /*#__PURE__*/React__default["default"].createElement(context.Provider, {
    value: {
      opened,
      setOpened
    }
  }, /*#__PURE__*/React__default["default"].createElement("div", {
    className: className
  }, children));
}

module.exports = AccordionGroup;
//# sourceMappingURL=AccordionGroup.js.map
