From 4bc03002e17a0d128059c9d6d76c91ba7bac2e8f Mon Sep 17 00:00:00 2001
From: Sebastien Castiel <sebastien@castiel.me>
Date: Thu, 7 Dec 2023 18:35:09 -0500
Subject: Dark mode

---
 src/components/theme-provider.tsx | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 src/components/theme-provider.tsx

(limited to 'src/components/theme-provider.tsx')

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>
+}
-- 
cgit v1.3

