Skip to content

Commit 1da49e9

Browse files
committed
Create ThemeProvider component for theme management
1 parent 68b209d commit 1da49e9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

providers/theme-provider.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)