"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.BlockRefs = void 0;
exports.BlockRefsProvider = BlockRefsProvider;
var _element = require("@wordpress/element");
var _compose = require("@wordpress/compose");
var _jsxRuntime = require("react/jsx-runtime");
/**
 * WordPress dependencies
 */

const BlockRefs = exports.BlockRefs = (0, _element.createContext)({
  refsMap: (0, _compose.observableMap)()
});
function BlockRefsProvider({
  children
}) {
  const value = (0, _element.useMemo)(() => ({
    refsMap: (0, _compose.observableMap)()
  }), []);
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(BlockRefs.Provider, {
    value: value,
    children: children
  });
}
//# sourceMappingURL=block-refs-provider.js.map