mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-01 12:02:07 +08:00
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.
17 lines
476 B
TypeScript
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,
|
|
)
|