Files
CT/src/Tabs/overviewTab.tsx
T

33 lines
1007 B
TypeScript
Raw Normal View History

2024-07-07 22:11:18 +02:00
import * as React from "bloatless-react";
2024-07-09 17:23:29 +02:00
import { isConnected, isEncryptionAvailable } from "../Model/model";
2024-07-09 15:15:17 +02:00
import { ChatListSection } from "../Views/chatListSection";
2024-07-07 22:11:18 +02:00
import { ConnectionSection } from "../Views/connectionSection";
2024-07-09 17:27:15 +02:00
import { PersonalSection } from "../Views/personalSection";
2024-07-07 22:11:18 +02:00
import { translation } from "../translations";
2024-07-09 17:23:29 +02:00
export function OverviewTab() {
2024-07-07 22:11:18 +02:00
return (
<article id="settings-tab" toggle:connected={isConnected}>
2024-07-09 14:11:20 +02:00
<header>{translation.overview}</header>
2024-07-09 17:23:29 +02:00
2024-07-09 15:15:17 +02:00
<div class="flex-column large-gap">
2024-07-09 17:23:29 +02:00
<div class="tile error flex-no" toggle:hidden={isEncryptionAvailable}>
<span class="icon">warning</span>
<div>
<b>{translation.encryptionUnavailableTitle}</b>
<span class="secondary">
{translation.encryptionUnavailableMessage}
</span>
</div>
</div>
2024-07-09 17:27:15 +02:00
{PersonalSection()}
2024-07-09 15:15:17 +02:00
{ConnectionSection()}
{ChatListSection()}
</div>
2024-07-07 22:11:18 +02:00
</article>
);
}