Files
clash-verge-rev/src/providers/window/window-context.ts
T
Tunglies e56711b2db refactor(frontend): drop unused params, props and api surface
Remove the never-read _revalidate argument of mutateVerge and its 16
call-site placeholders, seven never-passed props of the split chip
editor, the unconsumed refreshDecorated context member, the now-orphaned
toggleFullscreen control, the unused translate argument of the notice
message handler, the reserved-but-unset ServiceConfig.timeout field and
unreachable branches in parseNoticeExtras.
2026-10-28 06:30:46 +08:00

17 lines
476 B
TypeScript

import { getCurrentWindow } from '@tauri-apps/api/window'
import { createContext } from 'react'
export interface WindowContextType {
decorated: boolean | null
maximized: boolean | null
toggleDecorations: () => Promise<void>
minimize: () => Promise<void>
close: () => Promise<void>
toggleMaximize: () => Promise<void>
currentWindow: ReturnType<typeof getCurrentWindow>
}
export const WindowContext = createContext<WindowContextType | undefined>(
undefined,
)