From 47bd449fbe50a7b423db860ee6a34a7a3f7c3bb4 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Sat, 23 Mar 2024 14:33:28 +0000
Subject: feature(web): Add dark mode support

---
 apps/web/components/theme-provider.tsx | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 apps/web/components/theme-provider.tsx

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

diff --git a/apps/web/components/theme-provider.tsx b/apps/web/components/theme-provider.tsx
new file mode 100644
index 00000000..8efcd93b
--- /dev/null
+++ b/apps/web/components/theme-provider.tsx
@@ -0,0 +1,9 @@
+"use client";
+
+import type { ThemeProviderProps } from "next-themes/dist/types";
+import * as React from "react";
+import { ThemeProvider as NextThemesProvider } from "next-themes";
+
+export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
+  return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
+}
-- 
cgit v1.2.3-70-g09d2

