deployment-talks/chat-app/frontend/components/ChatApp.js

15 lines
328 B
JavaScript
Raw Normal View History

import m from "mithril";
import { MessageBox } from "./MessageBox";
2024-10-01 02:07:05 +00:00
import { LoginForm } from "./Login";
export function createChatApp({ ws, session }) {
return {
view: function () {
return m("div", { class: "container" }, [
m("h1", "A Stupid Chat Application"),
m(LoginForm)
]);
}
};
}