We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68b209d commit 1da49e9Copy full SHA for 1da49e9
providers/theme-provider.tsx
@@ -0,0 +1,9 @@
1
+"use client";
2
+
3
+import * as React from "react";
4
+import { ThemeProvider as NextThemesProvider } from "next-themes";
5
+import { type ThemeProviderProps } from "next-themes/dist/types";
6
7
+export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
8
+ return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
9
+}
0 commit comments