import React__default, { useState } from 'react';
import { P as Provider } from '../context-8712877d.js';
import '../utils-b53fe532.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
