import { React } from "react"; import { useDrag } from "react-dnd"; import { ObjectType, defaultTableTheme } from "../data/data"; function Table() { const [{ isDragging }, drag] = useDrag(() => ({ type: "CARD", item: { type: ObjectType.TABLE }, collect: (monitor) => ({ isDragging: !!monitor.isDragging(), }), })); return (