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