import { FocusableContext } from './SWN3JYXT.js';
import { createHook, forwardRef as forwardRef2, createElement } from './LMDWO4NN.js';
import { useWrapElement } from './ABQUS43J.js';
import { __objRest } from './3YLGPPWQ.js';
import { j as jsxRuntimeExports } from '../../../../../../react@18.2.0/node_modules/react/jsx-runtime.js';

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

export { useFocusableContainer };
//# sourceMappingURL=ZWYATQFU.js.map
