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