Skip to content

Commit

Permalink
#33 DRY fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vidhya-metacell committed Jul 29, 2022
1 parent e037b2a commit da023d4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/views/mechanisms/PortWidgetComp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import * as React from "react";
import { Box } from "@mui/material";
import { PortWidget } from "@projectstorm/react-diagrams";

const PortWigetComp = (props) => {
const { engine, port, direction, startPoints } = props;
return (
<PortWidget
engine={engine}
port={port.getPort(direction)}
>
<Box style={startPoints} className="pointer" />
</PortWidget>
)
}
export default PortWigetComp;

0 comments on commit da023d4

Please sign in to comment.