2024-01-18 19:50:37 +00:00
|
|
|
#include utility.js
|
|
|
|
#include ui/chat-interface.js
|
|
|
|
|
|
|
|
// this needs revising at some point but will suffice for now
|
2024-07-01 21:38:07 +00:00
|
|
|
Umi.UI.ChatLayout = function(chatForm, sideBar) {
|
|
|
|
const main = new Umi.UI.ChatInterface(chatForm);
|
2024-01-18 19:50:37 +00:00
|
|
|
|
|
|
|
const html = $e({
|
|
|
|
attrs: {
|
|
|
|
id: 'umi-chat',
|
|
|
|
className: 'umi',
|
|
|
|
},
|
|
|
|
child: [
|
|
|
|
main,
|
|
|
|
sideBar,
|
|
|
|
],
|
|
|
|
});
|
|
|
|
|
|
|
|
return {
|
|
|
|
getInterface: function() {
|
|
|
|
return main;
|
|
|
|
},
|
|
|
|
getElement: function() {
|
|
|
|
return html;
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|