import {BallPiece} from "../editor/BallPiece" import Draggable from "react-draggable" import {useRef} from "react" import {NULL_POS} from "../../geo/Pos"; export interface BallActionProps { onDrop: (el: DOMRect) => void } export default function BallAction({onDrop}: BallActionProps) { const ref = useRef(null) return ( onDrop(ref.current!.getBoundingClientRect())} position={NULL_POS}>
) }