Files
CT/src/Views/chatToolView.tsx
T

22 lines
419 B
TypeScript
Raw Normal View History

2024-07-10 19:07:58 +02:00
import * as React from "bloatless-react";
import { Chat } from "../Model/chatModel";
import { translation } from "../translations";
export function ChatToolView(chat: Chat) {
2024-07-11 00:47:58 +02:00
function createItem() {
chat.createItem({
id: React.UUID(),
title: "new item",
});
}
2024-07-10 19:07:58 +02:00
return (
<div class="chat-tool-view">
2024-07-11 00:47:58 +02:00
<button on:click={createItem}>+</button>
<hr></hr>
2024-07-10 19:07:58 +02:00
</div>
);
}