mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-27 15:18:08 +00:00
16 lines
330 B
TypeScript
16 lines
330 B
TypeScript
|
|
import { DragSourceMonitor, DropTargetMonitor } from 'react-dnd';
|
||
|
|
|
||
|
|
export function dropHandler(monitor: DropTargetMonitor): { isOver: boolean } {
|
||
|
|
return {
|
||
|
|
isOver: monitor.isOver(),
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
export function dragHandler(
|
||
|
|
monitor: DragSourceMonitor,
|
||
|
|
): { isDragging: boolean } {
|
||
|
|
return {
|
||
|
|
isDragging: monitor.isDragging(),
|
||
|
|
};
|
||
|
|
}
|