import { useMemo as f } from "react";
import { useSortable as i } from "@dnd-kit/sortable";
import { CSS as c } from "@dnd-kit/utilities";
const S = (t) => {
  const { isDragging: o, setNodeRef: e, transform: r } = i({ id: t }), s = f(() => {
    const { x: n = 0, y: a = 0, scaleX: m = 1, scaleY: l = 1 } = r ?? {};
    return c.Translate.toString({ x: n, y: a, scaleX: m, scaleY: l }) ?? "";
  }, [r]);
  return {
    isDragging: o,
    setNodeRef: e,
    transformStyle: s
  };
};
export {
  S as default
};
//# sourceMappingURL=useCellDragAndDrop.js.map
