From 7a9db8301691c7e31d4afaaaa4f3e585aa5d96f9 Mon Sep 17 00:00:00 2001 From: kleap-admin Date: Thu, 15 Jan 2026 13:42:39 +0000 Subject: [PATCH] Update context/theme-provider.tsx --- context/theme-provider.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 context/theme-provider.tsx diff --git a/context/theme-provider.tsx b/context/theme-provider.tsx new file mode 100644 index 0000000..18ab2ed --- /dev/null +++ b/context/theme-provider.tsx @@ -0,0 +1,18 @@ +"use client"; + +import * as React from "react"; +import * as NextThemes from "next-themes"; + +/** + * ThemeProvider wrapper for next-themes + * Uses namespace import to avoid Turbopack naming collision + * (Turbopack has issues when importing and re-exporting the same name) + */ +export function ThemeProvider({ + children, + ...props +}: NextThemes.ThemeProviderProps) { + return ( + {children} + ); +}