"use client";

import { ReactNode } from "react";
import { ThemeProvider } from "./ThemeProvider";
import { ToastProvider } from "./ToastProvider";
import { ApolloWrapper } from "./ApolloWrapper";
import { PaymentSDKProvider } from "./PaymentSDKProvider";

export function GlobalProviders({ children }: { children: ReactNode }) {
  return (
    <ThemeProvider>
        <ToastProvider>
          <ApolloWrapper>
            <PaymentSDKProvider>
            {children}
            </PaymentSDKProvider>
          </ApolloWrapper>
        </ToastProvider>
    </ThemeProvider>
  );
}