mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-21 16:21:25 +02:00
Refactor desktop app into separate client and proxy apps
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 { type } from '@tauri-apps/plugin-os';
|
||||
import { useIsFullscreen } from './useIsFullscreen';
|
||||
|
||||
export function useStoplightsVisible() {
|
||||
const fullscreen = useIsFullscreen();
|
||||
const stoplightsVisible = type() === 'macos' && !fullscreen;
|
||||
return stoplightsVisible;
|
||||
}
|
||||
Reference in New Issue
Block a user