13 lines
327 B
TypeScript
13 lines
327 B
TypeScript
"use client";
|
|
|
|
import { ThemeProvider as NextThemeProvider } from "next-themes";
|
|
import { PropsWithChildren } from "react";
|
|
|
|
export function ThemeProvider({ children }: PropsWithChildren) {
|
|
return (
|
|
<NextThemeProvider attribute="class" defaultTheme="system" enableSystem>
|
|
{children}
|
|
</NextThemeProvider>
|
|
);
|
|
}
|