Feat: Displays the tool operator icon #3221 (#9133)

### What problem does this PR solve?

Feat: Displays the tool operator icon #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-07-31 15:05:12 +08:00
committed by GitHub
parent aeaeb169e4
commit 0d7a83f05f
14 changed files with 298 additions and 293 deletions

View File

@ -16,7 +16,7 @@ import { Operator } from '@/pages/agent/constant';
import { AgentInstanceContext, HandleContext } from '@/pages/agent/context';
import OperatorIcon from '@/pages/agent/operator-icon';
import { lowerFirst } from 'lodash';
import { PropsWithChildren, createContext, useContext } from 'react';
import { PropsWithChildren, createContext, memo, useContext } from 'react';
import { useTranslation } from 'react-i18next';
type OperatorItemProps = { operators: Operator[] };
@ -124,7 +124,7 @@ function AccordionOperators() {
);
}
export function NextStepDropdown({
export function InnerNextStepDropdown({
children,
hideModal,
}: PropsWithChildren & IModalProps<any>) {
@ -143,3 +143,5 @@ export function NextStepDropdown({
</DropdownMenu>
);
}
export const NextStepDropdown = memo(InnerNextStepDropdown);