UNPKG

aspire-react-data-table

Version:
20 lines (19 loc) 473 B
import React from 'react'; import { IconType } from 'react-icons'; interface Position { x: number; y: number; } interface Action<T> { name: string; icon: IconType; onClick: (rowData: T) => void; } interface ActionsBoxProps<T> { position: Position; theme?: any; actions: Action<T>[]; rowData: T; } declare const ActionsMenu: <T>({ position, theme, actions, rowData }: ActionsBoxProps<T>) => React.JSX.Element; export default ActionsMenu;