add useReactNodeView hook
This commit is contained in:
8
packages/react/src/useReactNodeView.ts
Normal file
8
packages/react/src/useReactNodeView.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import React, { useContext } from 'react'
|
||||
|
||||
export const ReactNodeViewContext = React.createContext<any>({
|
||||
isEditable: undefined,
|
||||
onDragStart: undefined,
|
||||
})
|
||||
|
||||
export const useReactNodeView = () => useContext(ReactNodeViewContext)
|
||||
Reference in New Issue
Block a user