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