@plteam/chat-ui
Version:
CUI Kit is a free and open-source library for creating AI assistant chat interfaces, built with React, Material UI, and TypeScript
8 lines (7 loc) • 459 B
JavaScript
import React from 'react';
import Stack from '@mui/material/Stack';
import MessageFileListItem from './MessageFileListItem';
const MessageFileList = ({ items, onDeleteItem }) => {
return (React.createElement(Stack, { gap: 1, flexDirection: 'column', justifySelf: "end", flexWrap: "nowrap" }, items.map((item) => (React.createElement(MessageFileListItem, { key: item.id, item: item, onDelete: onDeleteItem })))));
};
export default MessageFileList;