@copilotkit/react-ui
Version:
<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />
32 lines (30 loc) • 891 B
JavaScript
import {
useDarkMode
} from "./chunk-JGMFJZMG.mjs";
// src/components/chat/PoweredByTag.tsx
import { useState, useEffect } from "react";
import { jsx } from "react/jsx-runtime";
function PoweredByTag({ showPoweredBy = true }) {
const [mounted, setMounted] = useState(false);
const isDark = useDarkMode();
useEffect(() => {
setMounted(true);
}, []);
if (!showPoweredBy) {
return null;
}
const poweredByStyle = {
visibility: "visible",
display: "block",
position: "static",
textAlign: "center",
fontSize: "12px",
padding: "3px 0",
color: mounted && isDark ? "rgb(69, 69, 69)" : "rgb(214, 214, 214)"
};
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("p", { className: "poweredBy", style: poweredByStyle, children: "Powered by CopilotKit" }) });
}
export {
PoweredByTag
};
//# sourceMappingURL=chunk-ELGRNEAO.mjs.map