hugging-c-ai / src /app /providers.js
NeoPy's picture
feat: Hugging-c-ai v2 — HF OAuth + multi-provider AI + HF bucket storage + Gradio
60faa09
Raw History Blame Contribute Delete
456 Bytes
"use client";
import { SessionProvider } from "next-auth/react";
import { useEffect } from "react";
import config from "@/lib/config";
export function Providers({ children }) {
useEffect(() => {
if (typeof window !== "undefined") {
const theme = config?.theme || "slate-indigo";
document.documentElement.setAttribute("data-theme", theme);
}
}, []);
return (
<SessionProvider>
{children}
</SessionProvider>
);
}