Files
Firefly_Srtools_Live/src/components/themeController/clientThemeWrapper.tsx
AzenKain c77f4a2cb9
Some checks failed
Gitea Auto Deploy / Deploy-Container (push) Failing after 52s
init
2026-04-13 18:05:27 +07:00

8 lines
308 B
TypeScript

"use client";
import { PropsWithChildren, useContext } from "react";
import { ThemeContext } from "./themeContext";
export function ClientThemeWrapper({ children }: PropsWithChildren) {
const { theme } = useContext(ThemeContext);
return <div data-theme={theme} className="h-full">{children}</div>;
}