import { memo } from "react"; import { useTranslation } from "react-i18next"; import { MoreOutlined as MoreOutlinedIcon } from "@ant-design/icons"; import { Button, Card, Popover } from "antd"; import { CheckCircleIcon, XCircleIcon } from "lucide-react"; import { WorkflowNodeType } from "@/domain/workflow"; import AddNode from "./AddNode"; import SharedNode, { type SharedNodeProps } from "./_SharedNode"; export type ConditionNodeProps = SharedNodeProps & { branchId: string; branchIndex: number; }; const ExecuteResultNode = ({ node, disabled, branchId, branchIndex }: ConditionNodeProps) => { const { t } = useTranslation(); return ( <> } variant="text" />} /> } overlayClassName="shadow-md" overlayInnerStyle={{ padding: 0 }} placement="rightTop" > {node.type === WorkflowNodeType.ExecuteSuccess ? ( <> {t("workflow_node.execute_success.label")} > ) : ( <> {t("workflow_node.execute_failure.label")} > )} > ); }; export default memo(ExecuteResultNode);