import React from 'react' import { useReactNodeView } from './useReactNodeView' export interface NodeViewWrapperProps { as: React.ElementType } export const NodeViewWrapper: React.FC = props => { // TODO // @ts-ignore const { onDragStart } = useReactNodeView() const Tag = props.as || 'div' return ( {props.children} ) }