@react-libraries/virtual-window
Version:
VirtualWindow for React
17 lines (16 loc) • 605 B
TypeScript
import { Dispatch } from "react";
import { ActionType, WindowParams, BaseType } from "../Types/types";
export declare type WindowDispatch = Dispatch<ActionType>;
declare type Props = WindowParams & {
ref: React.RefObject<HTMLElement>;
titleSize: number;
overlapped: boolean;
baseX: BaseType;
baseY: BaseType;
};
export declare const useWindow: (windowParams: Props | (() => Props)) => {
params: WindowParams;
dispatch: Dispatch<ActionType>;
handleWindow: (e: React.MouseEvent<HTMLElement, MouseEvent> | React.TouchEvent<HTMLElement>) => void;
};
export {};