mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-24 09:27:49 +08:00
9 lines
232 B
TypeScript
9 lines
232 B
TypeScript
|
import React, { useContext } from 'react'
|
||
|
|
||
|
export const ReactNodeViewContext = React.createContext<any>({
|
||
|
isEditable: undefined,
|
||
|
onDragStart: undefined,
|
||
|
})
|
||
|
|
||
|
export const useReactNodeView = () => useContext(ReactNodeViewContext)
|