add useReactNodeView hook

This commit is contained in:
Philipp Kühn
2021-03-14 20:40:40 +01:00
parent 109bff0892
commit 380d27fe86
6 changed files with 75 additions and 13 deletions

View File

@@ -1,9 +1,10 @@
import React from 'react'
import { useReactNodeView } from './useReactNodeView'
export const NodeViewContent: React.FC = props => {
// TODO
const isEditable = true
// @ts-ignore
const { isEditable } = useReactNodeView()
return (
<div