| 1 | 'use client'; |
| 2 | |
| 3 | import { QueryClientProvider } from '@tanstack/react-query'; |
| 4 | import { ReactQueryDevtools } from '@tanstack/react-query-devtools'; |
| 5 | import { queryClient } from '@/lib/query-client'; |
| 6 | import { Toaster } from './ui/sonner'; |
| 7 | |
| 8 | export function Providers({ children }: { children: React.ReactNode }) { |
| 9 | return ( |
| 10 | <QueryClientProvider client={queryClient}> |
| 11 | {children} |
| 12 | <Toaster richColors position="top-right" /> |
| 13 | <ReactQueryDevtools initialIsOpen={false} /> |
| 14 | </QueryClientProvider> |
| 15 | ); |
| 16 | } |