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: () => void; close: () => void; toggleMaximize: () => Promise; toggleFullscreen: () => Promise; currentWindow: ReturnType; } export const WindowContext = createContext( undefined, );