21 lines
546 B
TypeScript
21 lines
546 B
TypeScript
'use client';
|
|
|
|
import { Handle, Position } from 'reactflow';
|
|
|
|
import { OssNodeInternal } from '@/models/miscellaneous';
|
|
|
|
import NodeCore from './NodeCore';
|
|
|
|
function OperationNode(node: OssNodeInternal) {
|
|
return (
|
|
<>
|
|
<Handle type='target' position={Position.Top} id='left' style={{ left: 40 }} />
|
|
<Handle type='target' position={Position.Top} id='right' style={{ right: 40, left: 'auto' }} />
|
|
<NodeCore node={node} />
|
|
<Handle type='source' position={Position.Bottom} />
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default OperationNode;
|