diff --git a/app/layout.tsx b/app/layout.tsx
index 890767a..0a459d6 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -1,6 +1,7 @@
import type { Metadata, Viewport } from 'next'
import { Inter, JetBrains_Mono } from 'next/font/google'
import { SessionProvider } from 'next-auth/react'
+import { ThemeProvider } from '@/components/theme-provider'
import './globals.css'
const inter = Inter({ subsets: ["latin"] });
@@ -41,9 +42,16 @@ export default function RootLayout({
children: React.ReactNode
}>) {
return (
-
+
- {children}
+
+ {children}
+
)
diff --git a/components/dashboard/header.tsx b/components/dashboard/header.tsx
index 859196e..7123d53 100644
--- a/components/dashboard/header.tsx
+++ b/components/dashboard/header.tsx
@@ -13,6 +13,7 @@ import {
import { Menu, LogOut, Settings, User as UserIcon, Monitor } from 'lucide-react'
import Link from 'next/link'
import { MobileNav } from './mobile-nav'
+import { ThemeToggle } from '@/components/theme-toggle'
import { useState } from 'react'
interface Profile {
@@ -78,6 +79,9 @@ export function DashboardHeader({ user, profile }: DashboardHeaderProps) {
{title}
+
+
+
+
:
+ theme === 'dark' ? :
+
+
+ return (
+
+
+
+
+
+ setTheme('light')} className="gap-2 cursor-pointer">
+
+ Light
+ {theme === 'light' && }
+
+ setTheme('dark')} className="gap-2 cursor-pointer">
+
+ Dark
+ {theme === 'dark' && }
+
+ setTheme('system')} className="gap-2 cursor-pointer">
+
+ System
+ {theme === 'system' && }
+
+
+
+ )
+}