// src/relay/NovaExampleRelayGraphQLProvider/index.tsx
import * as React from "react";
import {
  useFragment,
  useRefetchableFragment,
  usePaginationFragment,
  useSubscription,
  RelayEnvironmentProvider
} from "react-relay/hooks";
import { NovaGraphQLProvider } from "@nova/react";
import { useRelayLazyLoadQueryWithApolloAPI } from "./useRelayLazyLoadQueryWithApolloAPI.mjs";
import { useRelayMutationWithApolloAPI } from "./useRelayMutationWithApolloAPI.mjs";
var GraphQLInterface = {
  useFragment,
  useRefetchableFragment,
  usePaginationFragment,
  useLazyLoadQuery: useRelayLazyLoadQueryWithApolloAPI,
  useMutation: useRelayMutationWithApolloAPI,
  useSubscription
};
var NovaExampleRelayGraphQLProvider = ({ children, relayEnvironment }) => {
  return /* @__PURE__ */ React.createElement(RelayEnvironmentProvider, { environment: relayEnvironment }, /* @__PURE__ */ React.createElement(NovaGraphQLProvider, { graphql: GraphQLInterface }, children));
};
export {
  NovaExampleRelayGraphQLProvider
};
