aichat-core
Version:
AI 流式聊天业务核心TS模型封装及业务实现模块
13 lines (12 loc) • 781 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { Flex, Image } from "antd";
import "../../styles/chat-attachments.scss";
var ChatAttachments = function (_a) {
var items = _a.items;
return (_jsx("div", { className: "chat-attachments", children: items && items.length > 0 ? (_jsx(Image.PreviewGroup, { preview: {
onChange: function (current, prev) {
return console.log("current index: ".concat(current, ", prev index: ").concat(prev));
},
}, children: _jsx(Flex, { wrap: true, gap: "middle", justify: "space-around", children: items.map(function (item, index) { return (_jsx(Image, { className: "attachments-img", src: item, alt: "" }, index)); }) }) })) : null }));
};
export default ChatAttachments;