mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-06-10 16:42:48 +02:00
7314aedc71
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8 lines
258 B
TypeScript
8 lines
258 B
TypeScript
import { useAtomValue } from "jotai";
|
|
import { activeWorkspaceMetaAtom } from "./useActiveWorkspace";
|
|
|
|
export function useIsEncryptionEnabled() {
|
|
const workspaceMeta = useAtomValue(activeWorkspaceMetaAtom);
|
|
return workspaceMeta?.encryptionKey != null;
|
|
}
|