@prexo/ai-chat-sdk
Version:
AI Chat Component with Persistent History
26 lines (25 loc) • 1.03 kB
JavaScript
import { jsx, jsxs } from "react/jsx-runtime";
const TypingIndicator = () => {
return /* @__PURE__ */ jsxs("div", { className: "message bot typing", children: [
/* @__PURE__ */ jsx("div", { className: "bot-avatar", children: /* @__PURE__ */ jsx(
"img",
{
src: "https://raw.githubusercontent.com/plura-ai/prexo/refs/heads/main/apps/www/public/logo.png",
className: "w-10 h-10 rounded-lg object-cover invert",
alt: "Chat bot avatar",
onError: (e) => {
console.error("Failed to load image:", e);
e.currentTarget.style.display = "none";
}
}
) }),
/* @__PURE__ */ jsx("div", { className: "message-content", children: /* @__PURE__ */ jsx("div", { className: "message-bubble typing-bubble", children: /* @__PURE__ */ jsxs("div", { className: "typing-dots", children: [
/* @__PURE__ */ jsx("span", {}),
/* @__PURE__ */ jsx("span", {}),
/* @__PURE__ */ jsx("span", {})
] }) }) })
] });
};
export {
TypingIndicator
};