Some checks failed
Gitea Auto Deploy / Deploy-Container (push) Failing after 52s
8 lines
308 B
TypeScript
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>;
|
|
} |