()
| 4 | import { useStore } from 'zustand' |
| 5 | |
| 6 | export const useDragStore = () => { |
| 7 | const editor = useEditableStatic() |
| 8 | const store = React.useMemo(() => { |
| 9 | return Drag.getStore(editor) |
| 10 | }, [editor]) |
| 11 | return store |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * 是否拖拽中 |
no test coverage detected
searching dependent graphs…