'use strict';

var MTZPJQMC = require('./MTZPJQMC.cjs');
var LMDWO4NN = require('./LMDWO4NN.cjs');
var ABQUS43J = require('./ABQUS43J.cjs');
var _3YLGPPWQ = require('./3YLGPPWQ.cjs');

// src/popover/popover-anchor.tsx
var TagName = "div";
var usePopoverAnchor = LMDWO4NN.createHook(
  function usePopoverAnchor2(_a) {
    var _b = _a, { store } = _b, props = _3YLGPPWQ.__objRest(_b, ["store"]);
    const context = MTZPJQMC.usePopoverProviderContext();
    store = store || context;
    props = _3YLGPPWQ.__spreadProps(_3YLGPPWQ.__spreadValues({}, props), {
      ref: ABQUS43J.useMergeRefs(store == null ? void 0 : store.setAnchorElement, props.ref)
    });
    return props;
  }
);
LMDWO4NN.forwardRef(function PopoverAnchor2(props) {
  const htmlProps = usePopoverAnchor(props);
  return LMDWO4NN.createElement(TagName, htmlProps);
});

exports.usePopoverAnchor = usePopoverAnchor;
//# sourceMappingURL=OMU7RWRV.cjs.map
