import { DecoratedInput } from "@/components/DecoratedInput"; import { Icon } from "@/components/Icon"; import { AppState } from "@/ui_models/app_state"; import { observer } from "mobx-react-lite"; import { FunctionComponent } from "preact"; import { PreferencesGroup, PreferencesSegment, Text, Title } from "../components"; const formatCount = (count: number, itemType: string) => `${count} / ${count} ${itemType}`; const EncryptionEnabled: FunctionComponent<{ appState: AppState }> = observer(({ appState }) => { const count = appState.accountMenu.structuredNotesAndTagsCount; const notes = formatCount(count.notes, 'notes'); const tags = formatCount(count.tags, 'tags'); const archived = formatCount(count.archived, 'archived notes'); const deleted = formatCount(count.deleted, 'trashed notes'); const checkIcon = ; const noteIcon = ; const tagIcon = ; const archiveIcon = ; const trashIcon = ; return ( <>
); }); export const EndToEndEncryption: FunctionComponent<{ appState: AppState }> = observer(({ appState }) => { return ( End-to-end encryption {appState.accountMenu.encryptionStatusString} {appState.accountMenu.isEncryptionEnabled && } ); });