mongodb-chatbot-ui
Version:
UI React components for the MongoDB Assistant
29 lines (28 loc) • 814 B
JavaScript
import { jsx as o } from "react/jsx-runtime";
import { d as s } from "./index2.js";
import { N as c } from "./index9.js";
import { useChatbotContext as p } from "./useChatbotContext.js";
import { a as l } from "./emotion-css.esm.js";
import { Q as f } from "./index7.js";
import "react";
import "./polished.esm.js";
import "./ChatbotProvider.js";
function h(t) {
const { darkMode: r } = s(t.darkMode), { chatbotName: e, openChat: a } = p(), { className: i, text: m } = t, n = m ?? `Ask ${e ?? "the Assistant"}`;
return /* @__PURE__ */ o(
c,
{
className: l(i),
darkMode: r,
onClick: a,
variant: "primaryOutline",
leftGlyph: /* @__PURE__ */ o(f, { glyph: "Sparkle" }),
children: n
}
);
}
const A = h;
export {
A as ActionButtonTrigger,
h as ButtonTrigger
};