mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-26 03:11:28 +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,
|
|
});
|
|
}
|