From 1a2241c40e10193c5ff7008a7b7b36cc1d855d96 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Tue, 25 Mar 2025 15:55:45 +0900
Subject: initial commit

---
 components/layout/providers.tsx | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 components/layout/providers.tsx

(limited to 'components/layout/providers.tsx')

diff --git a/components/layout/providers.tsx b/components/layout/providers.tsx
new file mode 100644
index 00000000..1c645531
--- /dev/null
+++ b/components/layout/providers.tsx
@@ -0,0 +1,38 @@
+"use client"
+
+import * as React from "react"
+import { Provider as JotaiProvider } from "jotai"
+import { ThemeProvider as NextThemesProvider } from "next-themes"
+import { NuqsAdapter } from "nuqs/adapters/next/app"
+import { SessionProvider } from "next-auth/react";
+import { CacheProvider } from '@emotion/react';
+
+import { TooltipProvider } from "@/components/ui/tooltip"
+import createEmotionCache from './createEmotionCashe';
+
+
+const cache = createEmotionCache();
+
+
+export function ThemeProvider({
+  children,
+  ...props
+}: React.ComponentProps<typeof NextThemesProvider>) {
+  return (
+    <JotaiProvider>
+      <CacheProvider value={cache}>
+
+        <NextThemesProvider {...props}>
+          <TooltipProvider delayDuration={0}>
+            <NuqsAdapter>
+              <SessionProvider>
+                {children}
+              </SessionProvider>
+            </NuqsAdapter>
+          </TooltipProvider>
+        </NextThemesProvider>
+      </CacheProvider>
+
+    </JotaiProvider>
+  )
+}
-- 
cgit v1.2.3

