import { useTheme } from '@/components/theme-provider'; import { IInvokeNode } from '@/interfaces/database/flow'; import { Handle, NodeProps, Position } from '@xyflow/react'; import { Flex } from 'antd'; import classNames from 'classnames'; import { get } from 'lodash'; import { useTranslation } from 'react-i18next'; import { LeftHandleStyle, RightHandleStyle } from './handle-icon'; import styles from './index.less'; import NodeHeader from './node-header'; export function InvokeNode({ id, data, isConnectable = true, selected, }: NodeProps) { const { t } = useTranslation(); const { theme } = useTheme(); const url = get(data, 'form.url'); return (
{t('flow.url')}
{url}
); }