import React, { useContext } from 'react' export interface ReactNodeViewContextProps { isEditable: boolean, onDragStart: (event: DragEvent) => void, } export const ReactNodeViewContext = React.createContext>({ isEditable: undefined, onDragStart: undefined, }) export const useReactNodeView = () => useContext(ReactNodeViewContext)