1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00
Files
joplin/packages/lib/components/shared/ShareNoteDialog/useEncryptionWarningMessage.ts

10 lines
347 B
TypeScript

import { _ } from '../../../locale';
import { getEncryptionEnabled } from '../../../services/synchronizer/syncInfoUtils';
const useEncryptionWarningMessage = () => {
if (!getEncryptionEnabled()) return null;
return _('Note: When a note is shared, it will no longer be encrypted on the server.');
};
export default useEncryptionWarningMessage;