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

52 lines
1.1 KiB
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,
topDoubleLeftStyle,
topDoubleRightStyle,
} from "../styles";
type MathNodeProps = {};
const MathNode = (props: MathNodeProps) => {
return (
<div className="math-node node-layout">
<Handle
style={topDoubleLeftStyle}
id="in-a"
type="target"
position={Position.Top}
/>
<Handle
style={topDoubleRightStyle}
id="in-b"
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>+</option>
<option>-</option>
<option>*</option>
<option>/</option>
<option></option>
<option>**</option>
</select>
</div>
<Handle
style={bottomSmallStyle}
type="source"
position={Position.Bottom}
/>
</div>
);
};
export default MathNode;