import { IRagNode } from '@/interfaces/database/flow'; import { NodeProps, Position } from '@xyflow/react'; import { PropsWithChildren, memo } from 'react'; import { NodeHandleId, Operator } from '../../constant'; import OperatorIcon from '../../operator-icon'; import { LabelCard } from './card'; import { CommonHandle } from './handle'; import { LeftHandleStyle, RightHandleStyle } from './handle-icon'; import NodeHeader from './node-header'; import { NodeWrapper } from './node-wrapper'; import { ToolBar } from './toolbar'; type RagNodeProps = NodeProps & PropsWithChildren; function InnerSplitterNode({ id, data, isConnectable = true, selected, }: RagNodeProps) { return ( } > {data.name} ); } export const SplitterNode = memo(InnerSplitterNode);