import clsx from 'clsx'; import classes from './MRT_GrabHandleButton.module.css'; import { type DragEventHandler } from 'react'; import { ActionIcon, type ActionIconProps, Tooltip } from '@mantine/core'; import { type HTMLPropsRef, type MRT_RowData, type MRT_TableInstance, } from '../../types'; interface Props { actionIconProps?: ActionIconProps & HTMLPropsRef; onDragEnd: DragEventHandler; onDragStart: DragEventHandler; table: MRT_TableInstance; } export const MRT_GrabHandleButton = ({ actionIconProps, onDragEnd, onDragStart, table: { options: { icons: { IconGripHorizontal }, localization: { move }, }, }, }: Props) => { 'use no memo'; return ( { e.stopPropagation(); actionIconProps?.onClick?.(e); }} onDragEnd={onDragEnd} onDragStart={onDragStart} size="sm" title={undefined} variant="transparent" > ); };