import LLMLabel from '@/components/llm-select/llm-label'; import { useTheme } from '@/components/theme-provider'; import { ICategorizeNode } from '@/interfaces/database/flow'; import { Handle, NodeProps, Position } from '@xyflow/react'; import { Flex } from 'antd'; import classNames from 'classnames'; import { get } from 'lodash'; 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 }); const { theme } = useTheme(); return (
{positions.map((position, idx) => { return (
{position.text}
); })}
); }