fenghuo/apps/web/components/providers.tsx

22 lines
482 B
TypeScript

'use client';
import * as React from 'react';
import { ThemeProvider as NextThemesProvider } from 'next-themes';
import QueryProvider from '@/providers/query-provider';
export function Providers({ children }: { children: React.ReactNode }) {
return (
<QueryProvider>
<NextThemesProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
enableColorScheme
>
{children}
</NextThemesProvider>
</QueryProvider>
);
}