import { Flex } from 'antd'; import classNames from 'classnames'; import { useTranslation } from 'react-i18next'; import { Handle, NodeProps, Position } from 'reactflow'; import { Operator, operatorMap } from '../../constant'; import { NodeData } from '../../interface'; import OperatorIcon from '../../operator-icon'; import { RightHandleStyle } from './handle-icon'; import styles from './index.less'; // TODO: do not allow other nodes to connect to this node export function BeginNode({ selected, data }: NodeProps) { const { t } = useTranslation(); return (
{t(`flow.begin`)}
); }