"use client";
import formatErrorMessage from "../../../../utils/esm/formatErrorMessage.js";
import * as React from "react";
const PreviewCardRootContext = /* @__PURE__ */ React.createContext(void 0);
if (process.env.NODE_ENV !== "production") PreviewCardRootContext.displayName = "PreviewCardRootContext";
function usePreviewCardRootContext() {
  const context = React.useContext(PreviewCardRootContext);
  if (context === void 0) {
    throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: PreviewCardRootContext is missing. PreviewCard parts must be placed within <PreviewCard.Root>." : formatErrorMessage(50));
  }
  return context;
}
export {
  PreviewCardRootContext,
  usePreviewCardRootContext
};
//# sourceMappingURL=PreviewCardContext.js.map
