import { Flex } from 'antd'; import classNames from 'classnames'; import { get } from 'lodash'; import { useTranslation } from 'react-i18next'; import { Handle, NodeProps, Position } from 'reactflow'; import { NodeData } from '../../interface'; 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 url = get(data, 'form.url'); return (
{t('flow.url')}
{url}
); }