aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/theme-provider.tsx
diff options
context:
space:
mode:
authorSebastien Castiel <sebastien@castiel.me>2023-12-07 18:35:09 -0500
committerSebastien Castiel <sebastien@castiel.me>2023-12-07 18:35:09 -0500
commit4bc03002e17a0d128059c9d6d76c91ba7bac2e8f (patch)
tree59687bb0e83a02f07121f8f34820fcbffb786ef6 /src/components/theme-provider.tsx
parent61201c28646ccb3be155b84b2a95cbc4502e51e4 (diff)
Dark mode
Diffstat (limited to 'src/components/theme-provider.tsx')
-rw-r--r--src/components/theme-provider.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/theme-provider.tsx b/src/components/theme-provider.tsx
new file mode 100644
index 0000000..cb8c4c3
--- /dev/null
+++ b/src/components/theme-provider.tsx
@@ -0,0 +1,8 @@
+'use client'
+
+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>
+}