mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-18 15:33:52 +01:00
11 lines
333 B
TypeScript
11 lines
333 B
TypeScript
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,
|
|
});
|
|
}
|