()
| 106 | |
| 107 | // init context menu |
| 108 | const initContextMenu = () => { |
| 109 | return useContextMenu({ |
| 110 | anchor: select(`.${folderTreeClassName}`), |
| 111 | render: () => ( |
| 112 | <Menu |
| 113 | role="menu" |
| 114 | onClick={onClickMenuItem} |
| 115 | data={folderPanelContextMenu} |
| 116 | /> |
| 117 | ), |
| 118 | }); |
| 119 | }; |
| 120 | |
| 121 | const handleMenuClick = ( |
| 122 | item: IMenuItemProps, |
no test coverage detected