import React from 'react'; import { Handle, Position } from 'reactflow'; import Images from '../../util/Images'; import classNames from 'classnames'; import './FlowNode.scss'; export default class FlowNode extends React.Component { constructor(props) { super(props); } render() { const { node, } = this.props.data; let display = node.id.split('--')[0]; let cls = classNames({ 'node-item': true, 'selected': node.selected, }); let labelCls = classNames({ "node-label": true, }) if (node.properties.name && node.properties.name.value) { display = node.properties.name.value; } return ( <>
{display}
); } }