import LLMLabel from '@/components/llm-select/llm-label'; import { Flex } from 'antd'; import classNames from 'classnames'; import { get } from 'lodash'; import { Handle, NodeProps, Position } from 'reactflow'; import { NodeData } from '../../interface'; import { RightHandleStyle } from './handle-icon'; import { useBuildCategorizeHandlePositions } from './hooks'; import styles from './index.less'; import NodeHeader from './node-header'; export function CategorizeNode({ id, data, selected }: NodeProps) { const { positions } = useBuildCategorizeHandlePositions({ data, id }); return (
{positions.map((position, idx) => { return (
{position.text}
); })}
); }