import { useTranslate } from '@/hooks/common-hooks'; import { Flex } from 'antd'; import { Play } from 'lucide-react'; import { Operator, operatorMap } from '../../constant'; import OperatorIcon from '../../operator-icon'; import { needsSingleStepDebugging } from '../../utils'; import NodeDropdown from './dropdown'; import { NextNodePopover } from './popover'; import { RunTooltip } from '../../flow-tooltip'; interface IProps { id: string; label: string; name: string; gap?: number; className?: string; wrapperClassName?: string; } const ExcludedRunStateOperators = [Operator.Answer]; export function RunStatus({ id, name, label }: IProps) { const { t } = useTranslate('flow'); return (
{needsSingleStepDebugging(label) && ( // data-play is used to trigger single step debugging )} {t('operationResults')}
); } const NodeHeader = ({ label, id, name, gap = 4, className, wrapperClassName, }: IProps) => { return (
{!ExcludedRunStateOperators.includes(label as Operator) && ( )} {name}
); }; export default NodeHeader;