Files
CT/src/Tabs/messageTab.tsx
T

27 lines
695 B
TypeScript
Raw Normal View History

2024-07-07 22:11:18 +02:00
import * as React from "bloatless-react";
import { MessageComposer } from "../Views/messageComposer";
import { ThreadView } from "../Views/threadView";
2024-07-08 00:39:22 +02:00
import { clearMessageHistory } from "../model";
2024-07-07 22:11:18 +02:00
import { translation } from "../translations";
export function MessageTab() {
return (
<article id="message-tab">
2024-07-08 00:39:22 +02:00
<header>
{translation.messages}
<span>
<button
aria-label={translation.clearHistory}
on:click={clearMessageHistory}
>
<span class="icon">delete_sweep</span>
</button>
</span>
</header>
2024-07-07 22:11:18 +02:00
{ThreadView()}
<footer>{MessageComposer()}</footer>
</article>
);
}