"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ImageResolverProvider = void 0;
exports.useImageResolver = useImageResolver;
var _react = require("react");
/**
 * A function that resolves opaque identifiers (e.g. file IDs) to
 * loadable image URLs. Returns `undefined` when no URL is available yet.
 */

const ImageResolverContext = /*#__PURE__*/(0, _react.createContext)(null);
ImageResolverContext.displayName = 'BloomImageResolverContext';
const ImageResolverProvider = exports.ImageResolverProvider = ImageResolverContext.Provider;
function useImageResolver() {
  return (0, _react.useContext)(ImageResolverContext);
}
//# sourceMappingURL=context.js.map