import { jsx as _jsx } from "react/jsx-runtime";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { WagmiProvider } from "wagmi";
import { wagmiConfig } from "../../services/wagmi.js";
const defaultQueryClient = new QueryClient();
export function WagmiContext(props) {
    const { children, wagmiProviderProps, queryClientProviderProps } = props;
    const { config = wagmiConfig, ...wagmiProps } = wagmiProviderProps ?? {};
    const { client = defaultQueryClient, ...queryClientProps } = queryClientProviderProps ?? {};
    return (_jsx(WagmiProvider, { config: config, ...wagmiProps, children: _jsx(QueryClientProvider, { client: client, ...queryClientProps, children: children }) }));
}
//# sourceMappingURL=WagmiContext.js.map