snapshot of https://github.com/mountain-loop/yaak.git (main, 2026-09-23; blobs > 131072B omitted)
This commit is contained in:
8
apps/yaak-client/hooks/useStoplightsVisible.ts
Normal file
8
apps/yaak-client/hooks/useStoplightsVisible.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { platform } from "@yaakapp-internal/platform";
|
||||
import { useIsFullscreen } from "@yaakapp-internal/ui";
|
||||
|
||||
export function useStoplightsVisible() {
|
||||
const fullscreen = useIsFullscreen();
|
||||
const stoplightsVisible = platform.osType() === "macos" && !fullscreen;
|
||||
return stoplightsVisible;
|
||||
}
|
||||
Reference in New Issue
Block a user