import { Position, Handle } from 'reactflow'; import { getNodeSublabel } from './node.utils.jsx'; import { __ } from '@wordpress/i18n'; export default function ActionNode({ id, data }) { return (
[{id}]
{data.error && (
!
)} {!data.code && (
+
)}
{data.label ? data.label : __('Add action', 'ai-copilot-content-generator')}
{getNodeSublabel(data, 'actions')}
); }