import { AppState } from '@/ui_models/app_state'; import { observer } from 'mobx-react-lite'; type Props = { appState: AppState; notesAndTagsCount: number; } const Encryption = observer(({ appState, notesAndTagsCount }: Props) => { const { isEncryptionEnabled, encryptionStatusString } = appState.accountMenu; const getEncryptionStatusForNotes = () => { const length = notesAndTagsCount; return `${length}/${length} notes and tags encrypted`; }; return (
Encryption
{isEncryptionEnabled && (
{getEncryptionStatusForNotes()}
)}

{encryptionStatusString}

); }); export default Encryption;