fenghuo/apps/web/components/providers.tsx

21 lines
474 B
TypeScript
Raw Permalink Normal View History

2025-02-18 15:35:03 +08:00
'use client';
import * as React from 'react';
import { ThemeProvider as NextThemesProvider } from 'next-themes';
2025-05-27 08:56:07 +08:00
import QueryProvider from '@/providers/query-provider';
2025-02-18 15:35:03 +08:00
export function Providers({ children }: { children: React.ReactNode }) {
return (
<NextThemesProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
enableColorScheme
>
2025-05-28 08:23:14 +08:00
<QueryProvider>
2025-05-29 12:23:29 +08:00
{children}
2025-05-28 08:23:14 +08:00
</QueryProvider>
</NextThemesProvider>
);
2025-02-18 15:35:03 +08:00
}