You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
618 B
19 lines
618 B
"use client";
|
|
|
|
import { NextUIProvider } from "@nextui-org/react";
|
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
|
import { ContextMenuProvider } from "./ContextMenuProvider";
|
|
|
|
export function Providers({ children }: { children: React.ReactNode }) {
|
|
const queryClient = new QueryClient();
|
|
return (
|
|
<QueryClientProvider client={queryClient}>
|
|
<ReactQueryDevtools initialIsOpen={false} />
|
|
<NextUIProvider>
|
|
<ContextMenuProvider>{children}</ContextMenuProvider>
|
|
</NextUIProvider>
|
|
</QueryClientProvider>
|
|
);
|
|
}
|