deal with dynamic handles later (#799)

This commit is contained in:
Michael Quigley 2024-12-18 12:05:43 -05:00
parent c7dbb37f0a
commit 2dbd6a520d
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -3,14 +3,10 @@ import {Grid2} from "@mui/material";
import EnvironmentIcon from "@mui/icons-material/Computer";
const EnvironmentNode = ({ data }) => {
let shareHandle = <Handle type="source" position={Position.Bottom} />;
if(data.empty) {
shareHandle = <></>;
}
return (
<>
<Handle type="target" position={Position.Top} />
{shareHandle}
<Handle type="source" position={Position.Bottom} />
<Grid2 container sx={{ flexGrow: 1, p: 1 }} alignItems="center">
<Grid2 display="flex"><EnvironmentIcon sx={{ fontSize: 15, mr: 0.5 }}/></Grid2>
<Grid2 display="flex">{data.label}</Grid2>