{ setSelectedKey(item.id); }}
+ onToggle={() => { handleExpandCollapseKeys(item.id); }}
+ />,
+ );
+ });
+ return elements;
+ }
+
+ return null;
+ };
+
+ const reloadItems = () => {
+ setReloaded(true);
+
+ setExpandedItems({
+ 'reload-item-3-level-1': false,
+ 'reload-item-4-level-2-1': false,
+ 'reload-item-5-level-1': false,
+ });
+ };
+
+ return (
+ <>
+
+
+
+
+ {buildFolderTreeItems(isReloaded ? data.reloadItems : data.items)}
+
+
+ >
+ );
+};
+
+export default FolderTreeReload;