import formatErrorMessage from "../../../../utils/esm/formatErrorMessage.js";
import * as React from "react";
const PreviewCardPortalContext = /* @__PURE__ */ React.createContext(void 0);
if (process.env.NODE_ENV !== "production") PreviewCardPortalContext.displayName = "PreviewCardPortalContext";
function usePreviewCardPortalContext() {
  const value = React.useContext(PreviewCardPortalContext);
  if (value === void 0) {
    throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <PreviewCard.Portal> is missing." : formatErrorMessage(48));
  }
  return value;
}
export {
  PreviewCardPortalContext,
  usePreviewCardPortalContext
};
//# sourceMappingURL=PreviewCardPortalContext.js.map
