mongodb-chatbot-ui
Version:
UI React components for the MongoDB Chatbot Framework
33 lines (32 loc) • 1.13 kB
JavaScript
import { j as r } from "./jsx-runtime.js";
import { t as i, Q as m } from "./index4.js";
import { u as h } from "./useLinkData.js";
import { b as l } from "./utils.js";
import "react";
import "./index2.js";
import "./OpenNewTab.js";
import "./LinkDataProvider.js";
function y({
className: t,
linkStyle: o = "learnMore"
}) {
const { tck: s } = h(), a = "https://www.mongodb.com/products/platform/atlas-vector-search", e = (n) => /* @__PURE__ */ r.jsx(m, { href: l(a, { tck: s }), hideExternalIcon: !0, children: n.children }), c = () => {
switch (o) {
case "learnMore":
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
"Powered by Atlas Vector Search.",
" ",
/* @__PURE__ */ r.jsx(e, { children: "Learn More." })
] });
case "text":
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
"Powered by ",
/* @__PURE__ */ r.jsx(e, { children: "Atlas Vector Search" })
] });
}
};
return /* @__PURE__ */ r.jsx(i, { className: t, children: /* @__PURE__ */ r.jsx(c, {}) });
}
export {
y as PoweredByAtlasVectorSearch
};