(connect, monitor)
| 10 | }; |
| 11 | |
| 12 | function collect(connect, monitor) { |
| 13 | return { |
| 14 | connectDragSource: connect.dragSource(), |
| 15 | connectDragPreview: connect.dragPreview(), |
| 16 | isDragging: monitor.isDragging(), |
| 17 | }; |
| 18 | } |
| 19 | |
| 20 | @DragSource(ItemTypes.KNIGHT, knightSource, collect) |
| 21 | export default class Knight extends Component { |
no test coverage detected