import { NodeCollapsible } from '@/components/collapse'; import { BaseNode } from '@/interfaces/database/agent'; import { NodeProps, Position } from '@xyflow/react'; import { memo } from 'react'; import { useTranslation } from 'react-i18next'; import { NodeHandleId } from '../../constant'; import { ParserFormSchemaType } from '../../form/parser-form'; import { LabelCard } from './card'; import { CommonHandle } from './handle'; import { LeftHandleStyle, RightHandleStyle } from './handle-icon'; import NodeHeader from './node-header'; import { NodeWrapper } from './node-wrapper'; function ParserNode({ id, data, isConnectable = true, selected, }: NodeProps>) { const { t } = useTranslation(); return ( {(x, idx) => ( Parser {idx + 1} {t(`dataflow.fileFormatOptions.${x.fileFormat}`)} )} ); } export default memo(ParserNode);