19 lines
No EOL
474 B
TypeScript
19 lines
No EOL
474 B
TypeScript
"use client";
|
|
|
|
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
|
import type { ReactNode } from "react";
|
|
|
|
export function ThemeProvider({ children }: { children: ReactNode }) {
|
|
return (
|
|
<NextThemesProvider
|
|
attribute="class"
|
|
defaultTheme="warm"
|
|
themes={["warm", "dark"]}
|
|
enableSystem={false}
|
|
disableTransitionOnChange
|
|
storageKey="wfdash-mode"
|
|
>
|
|
{children}
|
|
</NextThemesProvider>
|
|
);
|
|
} |