import React__default, { useState } from 'react';
import { P as Provider } from '../context-b4ca2753.js';
import '../utils-4ce9435a.js';

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

export { AccordionGroup as default };
//# sourceMappingURL=AccordionGroup.js.map
