mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-19 07:19:45 +02:00
Refactor desktop app into separate client and proxy apps
This commit is contained in:
10
apps/yaak-client/hooks/useEnvironmentValueVisibility.ts
Normal file
10
apps/yaak-client/hooks/useEnvironmentValueVisibility.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Environment } from '@yaakapp-internal/models';
|
||||
import { useKeyValue } from './useKeyValue';
|
||||
|
||||
export function useEnvironmentValueVisibility(environment: Environment) {
|
||||
return useKeyValue<boolean>({
|
||||
namespace: 'global',
|
||||
key: ['environmentValueVisibility', environment.workspaceId],
|
||||
fallback: false,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user