handleNodeMouseDown(e, node)}
onClick={() => setSelectedNode(node)}
>
{node.inputs.map(input => (
{
e.stopPropagation();
handlePortClick(node.id, input, false);
}}
style={{ cursor: 'pointer' }}
/>
{input}
))}
{node.outputs.map(output => (
{output}
{
e.stopPropagation();
handlePortClick(node.id, output, true);
}}
style={{ cursor: 'pointer' }}
/>
))}
))}
{nodes.length === 0 && (
Drag blocks from the sidebar to start building your pipeline
)}