Update context/theme-provider.tsx

This commit is contained in:
kleap-admin 2026-01-18 13:41:06 +00:00
parent ded0b95a98
commit 07b52a9a25
1 changed files with 18 additions and 0 deletions

View File

@ -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 (
<NextThemes.ThemeProvider {...props}>{children}</NextThemes.ThemeProvider>
);
}