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