mami/src/mami.js/ui/chat-interface.js

31 lines
602 B
JavaScript
Raw Normal View History

2024-01-18 19:50:37 +00:00
#include utility.js
#include ui/chat-message-list.js
#include ui/chat-input.js
Umi.UI.ChatInterface = function() {
2024-02-20 21:13:34 +00:00
const messages = new Umi.UI.ChatMessageList;
const input = new Umi.UI.ChatInput;
2024-01-18 19:50:37 +00:00
const html = $e({
attrs: {
className: 'main',
},
child: [
messages,
input,
],
});
return {
getMessageList: function() {
return messages;
},
getInput: function() {
return input;
},
getElement: function() {
return html;
},
};
};