UNPKG

@tamagutchi/gantt-task-react

Version:
8 lines (7 loc) 367 B
import type { RefObject } from "react"; import type { ContextMenuType, TaskOrEmpty } from "../../types/public-types"; export declare const useContextMenu: (wrapperRef: RefObject<HTMLDivElement>) => { contextMenu: ContextMenuType; handleCloseContextMenu: () => void; handleOpenContextMenu: (task: TaskOrEmpty, clientX: number, clientY: number) => void; };