import { useTranslation } from 'react-i18next' import clsx from 'clsx'; import type { ReactShapeConfig } from '@antv/x6-react-shape'; const ConditionNode: ReactShapeConfig['component'] = ({ node }) => { const data = node?.getData() || {}; const { t } = useTranslation() return (
{data.name ?? t(`workflow.${data.type}`)}
{ e.stopPropagation() node.remove() }} >
{t('workflow.clickToConfigure')}
); }; export default ConditionNode;