@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;" />
31 lines (29 loc) • 792 B
JavaScript
import {
Suggestion
} from "./chunk-NGJ32FAP.mjs";
// src/components/chat/Suggestions.tsx
import { jsx } from "react/jsx-runtime";
function Suggestions({
suggestions,
onSuggestionClick,
isLoading
}) {
return /* @__PURE__ */ jsx("div", { className: "suggestions", children: suggestions.map((suggestion, index) => {
var _a, _b;
return /* @__PURE__ */ jsx(
Suggestion,
{
title: suggestion.title,
message: suggestion.message,
partial: (_b = (_a = suggestion.isLoading) != null ? _a : suggestion.partial) != null ? _b : isLoading,
className: suggestion.className,
onClick: () => onSuggestionClick(suggestion.message)
},
index
);
}) });
}
export {
Suggestions
};
//# sourceMappingURL=chunk-QB3GUN2N.mjs.map