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";
|
|
|
|
|
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 15:15:17 +02:00
|
|
|
{ConnectionSection()}
|
|
|
|
|
{ChatListSection()}
|
|
|
|
|
</div>
|
2024-07-07 22:11:18 +02:00
|
|
|
</article>
|
|
|
|
|
);
|
|
|
|
|
}
|