import { useTranslate } from '@/hooks/common-hooks'; import { Flex } from 'antd'; import classNames from 'classnames'; import lowerFirst from 'lodash/lowerFirst'; import { Handle, NodeProps, Position } from 'reactflow'; import { Operator, operatorMap } from '../../constant'; import { NodeData } from '../../interface'; import styles from './index.less'; // TODO: do not allow other nodes to connect to this node export function BeginNode({ id, data, selected }: NodeProps) { const { t } = useTranslate('flow'); return (
{t(lowerFirst(data.label))}
{data.name}
); }