fenghuo/apps/web/components/providers.tsx

20 lines
467 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 (
<NextThemesProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
enableColorScheme
>
<QueryProvider>{children}</QueryProvider>
</NextThemesProvider>
);
}