Q58Connect/src/app/providers.tsx
2024-09-07 18:19:33 +08:00

20 lines
444 B
TypeScript

"use client";
import * as React from "react";
import { ThemeProvider } from "next-themes";
import { type ThemeProviderProps as ProviderProps } from "next-themes/dist/types";
export function Providers({ children, ...props }: ProviderProps) {
return (
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
{...props}
>
{children}
</ThemeProvider>
);
}