aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/components/theme-provider.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/theme-provider.tsx')
-rw-r--r--frontend/src/components/theme-provider.tsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/frontend/src/components/theme-provider.tsx b/frontend/src/components/theme-provider.tsx
new file mode 100644
index 0000000..220a1f8
--- /dev/null
+++ b/frontend/src/components/theme-provider.tsx
@@ -0,0 +1,9 @@
+"use client"
+
+import * as React from "react"
+import { ThemeProvider as NextThemesProvider } from "next-themes"
+import { type ThemeProviderProps } from "next-themes/dist/types"
+
+export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
+ return <NextThemesProvider {...props}>{children}</NextThemesProvider>
+} \ No newline at end of file