import { ThemeProvider } from "@/providers/theme/ThemeProvider";
import type { ReactNode } from "react";
import QueryProvider from "./react-query/QueryProvider";

interface Props {
  children: ReactNode;
}

const MainProvider = ({ children }: Props) => {
  return (
    <QueryProvider>
      <ThemeProvider defaultTheme="dark">{children}</ThemeProvider>
    </QueryProvider>
  );
};

export default MainProvider;
