"use strict";

import { createContext, useContext } from '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__*/createContext(null);
ImageResolverContext.displayName = 'BloomImageResolverContext';
export const ImageResolverProvider = ImageResolverContext.Provider;
export function useImageResolver() {
  return useContext(ImageResolverContext);
}
//# sourceMappingURL=context.js.map