import React from 'react'; import { Card } from 'antd'; import { DetailPanel, withEditorContext } from 'gg-editor'; import { EditorContextProps } from 'gg-editor/lib/components/EditorContext'; import { DetailPanelComponentProps } from 'gg-editor/lib/components/DetailPanel'; interface NodePanelProps extends EditorContextProps, DetailPanelComponentProps { } interface NodePanelState { } class NodePanel extends React.Component { render() { const { nodes } = this.props; const node = nodes[0]; return ( {node ? node.getModel().label : ''} ) } } export default DetailPanel.create('node')(withEditorContext(NodePanel));