MCPcopy Create free account
hub / github.com/ModelEngine-Group/app-platform / showMenus

Function showMenus

agent-flow/src/components/Header.jsx:135–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 * @return {JSX.Element}
134 */
135 const showMenus = () => {
136 if (shape.drawer.getToolMenus().length > 0) {
137 return (<>
138 <div onMouseDown={e => e.stopPropagation()} className={'jade-menus'}>
139 <Dropdown
140 getPopupContainer={trigger => trigger.parentNode}
141 disabled={shapeStatus.disabled}
142 menu={getMenu()}
143 trigger='click'
144 placement='bottomRight'>
145 <Button type='text' size='small' className={'react-node-header-button icon-button'}>
146 {HEADER_TOOL_MENU_ICON}
147 </Button>
148 </Dropdown>
149 </div>
150 </>);
151 }
152 return <></>;
153 };
154
155 const onConfirm = (newData) => {
156 dispatch({type: 'changeFlowMeta', actionType: 'changeFlowMeta', data: newData});

Callers 1

HeaderFunction · 0.85

Calls 1

getMenuFunction · 0.85

Tested by

no test coverage detected