@aircall/blocks
Version:
Aircall Blocks — higher-level UI compositions built on @aircall/ds
17 lines (16 loc) • 690 B
JavaScript
import { Spinner, useDsTranslation } from "@aircall/ds";
import { jsx, jsxs } from "react/jsx-runtime";
//#region src/components/chatbot-loading-block.tsx
/** Placeholder shown while a :::component block is still streaming in. */
function ChatbotLoadingBlock() {
const t = useDsTranslation("blocks");
return /* @__PURE__ */ jsxs("div", {
className: "flex items-center justify-center gap-2 w-full rounded-md border border-border p-4",
children: [/* @__PURE__ */ jsx(Spinner, { size: "sm" }), /* @__PURE__ */ jsx("span", {
className: "text-sm text-muted-foreground",
children: t("chatbotResponse.renderingComponent")
})]
});
}
//#endregion
export { ChatbotLoadingBlock as t };