mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-06-25 19:36:30 +02:00
[WIP] Encryption for secure values (#183)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import {useAtomValue} from "jotai/index";
|
||||
import {activeWorkspaceMetaAtom} from "./useActiveWorkspace";
|
||||
|
||||
export function useIsEncryptionEnabled() {
|
||||
const workspaceMeta = useAtomValue(activeWorkspaceMetaAtom);
|
||||
return workspaceMeta?.encryptionKey != null;
|
||||
}
|
||||
Reference in New Issue
Block a user