import { QueryClient, QueryClientProvider } from "@tanstack/react-query";

export function TanStackQueryContext() {
  const queryClient = new QueryClient();
  return {
    queryClient,
  };
}

export function TanStackQueryProvider({
  children,
  queryClient,
}: {
  children: React.ReactNode;
  queryClient: QueryClient;
}) {
  return (
    <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
  );
}
