Portal/rsconcept/frontend/src/pages/OssPage/EditorOssGraph/OperationNode.tsx

21 lines
546 B
TypeScript
Raw Normal View History

2024-08-19 11:56:46 +03:00
'use client';
2024-06-27 14:43:06 +03:00
import { Handle, Position } from 'reactflow';
2024-07-26 17:30:37 +03:00
import { OssNodeInternal } from '@/models/miscellaneous';
2024-06-27 14:43:06 +03:00
2024-08-19 22:03:08 +03:00
import NodeCore from './NodeCore';
2024-06-27 14:43:06 +03:00
2024-07-26 17:30:37 +03:00
function OperationNode(node: OssNodeInternal) {
2024-06-27 14:43:06 +03:00
return (
<>
2024-07-23 23:03:58 +03:00
<Handle type='target' position={Position.Top} id='left' style={{ left: 40 }} />
<Handle type='target' position={Position.Top} id='right' style={{ right: 40, left: 'auto' }} />
2024-08-19 22:03:08 +03:00
<NodeCore node={node} />
<Handle type='source' position={Position.Bottom} />
2024-06-27 14:43:06 +03:00
</>
);
}
export default OperationNode;