"use client";
'use strict';

var _7HVFURXT = require('./7HVFURXT.cjs');
var LMDWO4NN = require('./LMDWO4NN.cjs');
var ABQUS43J = require('./ABQUS43J.cjs');
var _3YLGPPWQ = require('./3YLGPPWQ.cjs');
var PBFD2E7P = require('../../../../../../@ariakit_core@0.4.15/node_modules/@ariakit/core/esm/__chunks/PBFD2E7P.cjs');
var React = require('react');
var jsxRuntime = require('react/jsx-runtime');

var TagName = "div";
var useGroup = LMDWO4NN.createHook(
  function useGroup2(props) {
    const [labelId, setLabelId] = React.useState();
    props = ABQUS43J.useWrapElement(
      props,
      (element) => /* @__PURE__ */ jsxRuntime.jsx(_7HVFURXT.GroupLabelContext.Provider, { value: setLabelId, children: element }),
      []
    );
    props = _3YLGPPWQ.__spreadValues({
      role: "group",
      "aria-labelledby": labelId
    }, props);
    return PBFD2E7P.removeUndefinedValues(props);
  }
);
LMDWO4NN.forwardRef(function Group2(props) {
  const htmlProps = useGroup(props);
  return LMDWO4NN.createElement(TagName, htmlProps);
});

exports.useGroup = useGroup;
//# sourceMappingURL=36LIF33V.cjs.map
