mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-13 20:10:07 +02:00
Refactor context menu handler into hook
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
import { RowNode } from '@ag-grid-community/core';
|
||||
import type { AgGridReact as AgGridReactType } from '@ag-grid-community/react/lib/agGridReact';
|
||||
import { createUseExternalEvents } from '@mantine/utils';
|
||||
import { MutableRefObject } from 'react';
|
||||
import { LibraryItem } from '/@/renderer/api/types';
|
||||
|
||||
export type OpenContextMenuProps = {
|
||||
data: any[];
|
||||
dataNodes?: RowNode[];
|
||||
menuItems: SetContextMenuItems;
|
||||
tableRef?: MutableRefObject<AgGridReactType | null>;
|
||||
type: LibraryItem;
|
||||
xPos: number;
|
||||
yPos: number;
|
||||
|
||||
Reference in New Issue
Block a user