26 lines
723 B
TypeScript
26 lines
723 B
TypeScript
import { Handle, Position } from "react-flow-renderer";
|
||
import { bottomBigStyle, topBigStyle } from "../styles";
|
||
|
||
type DelayNodeProps = {};
|
||
|
||
const DelayNode = (props: DelayNodeProps) => {
|
||
return (
|
||
<div className="delay-node node-layout">
|
||
<Handle style={topBigStyle} type="target" position={Position.Top} />
|
||
<div className="node-header">
|
||
<span className="node-title">Задержка</span>
|
||
</div>
|
||
<div className="node-content">
|
||
<select className="nodrag">
|
||
<option>1 c</option>
|
||
<option>2 c</option>
|
||
</select>
|
||
</div>
|
||
|
||
<Handle style={bottomBigStyle} type="source" position={Position.Bottom} />
|
||
</div>
|
||
);
|
||
};
|
||
|
||
export default DelayNode;
|