'use strict';

var SWN3JYXT = require('./SWN3JYXT.cjs');
var LMDWO4NN = require('./LMDWO4NN.cjs');
var ABQUS43J = require('./ABQUS43J.cjs');
var _3YLGPPWQ = require('./3YLGPPWQ.cjs');
var jsxRuntime = require('../../../../../../react@18.2.0/node_modules/react/jsx-runtime.cjs');

var TagName = "div";
var useFocusableContainer = LMDWO4NN.createHook(function useFocusableContainer2(_a) {
  var _b = _a, { autoFocusOnShow = true } = _b, props = _3YLGPPWQ.__objRest(_b, ["autoFocusOnShow"]);
  props = ABQUS43J.useWrapElement(
    props,
    (element) => /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(SWN3JYXT.FocusableContext.Provider, { value: autoFocusOnShow, children: element }),
    [autoFocusOnShow]
  );
  return props;
});
LMDWO4NN.forwardRef(function FocusableContainer2(props) {
  const htmlProps = useFocusableContainer(props);
  return LMDWO4NN.createElement(TagName, htmlProps);
});

exports.useFocusableContainer = useFocusableContainer;
//# sourceMappingURL=ZWYATQFU.cjs.map
