support creating new chats, list chats

This commit is contained in:
marlon-erler
2024-07-20 05:10:50 +02:00
parent 92f0d3c662
commit d9f0f400f8
8 changed files with 520 additions and 168 deletions
+17
View File
@@ -0,0 +1,17 @@
import * as React from "bloatless-react";
import { ChatModel } from "../../Model/chatModel";
export function ChatEntry(chatModel: ChatModel) {
return (
<div class="tile flex-column justify-end align-start">
<h2>{chatModel.info.primaryChannel}</h2>
</div>
);
}
export const ChatModelToChatEntry: React.StateItemConverter<ChatModel> = (
chatModel: ChatModel
) => {
return ChatEntry(chatModel);
};