fenghuo/apps/web/components/providers.tsx

19 lines
406 B
TypeScript
Raw 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';
export function Providers({ children }: { children: React.ReactNode }) {
return (
<NextThemesProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
enableColorScheme
>
{children}
</NextThemesProvider>
);
}