Asteri-Vostok/components/FlowEditor/nodes/Logic/DelayNode.tsx

39 lines
861 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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