mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-26 03:11:12 +01:00
Refactor desktop app into separate client and proxy apps
This commit is contained in:
7
apps/yaak-client/hooks/useIsEncryptionEnabled.ts
Normal file
7
apps/yaak-client/hooks/useIsEncryptionEnabled.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { useAtomValue } from 'jotai';
|
||||
import { activeWorkspaceMetaAtom } from './useActiveWorkspace';
|
||||
|
||||
export function useIsEncryptionEnabled() {
|
||||
const workspaceMeta = useAtomValue(activeWorkspaceMetaAtom);
|
||||
return workspaceMeta?.encryptionKey != null;
|
||||
}
|
||||
Reference in New Issue
Block a user