Files
CT/src/View/Components/chatEntry.tsx
T

18 lines
420 B
TypeScript
Raw Normal View History

2024-07-20 05:10:50 +02:00
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);
};