mirror of
https://github.com/woodchen-ink/Q58Connect.git
synced 2025-07-18 05:51:55 +08:00
20 lines
444 B
TypeScript
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>
|
|
);
|
|
}
|