{!showCheckboxes && item.isLoading &&
}
{!showCheckboxes && statusIcon}
{showCheckboxes && shouldReplaceCheckboxWithState && (
<>
{item.isLoading &&
}
{statusIcon}
>
)}
{showCheckboxes && !shouldReplaceCheckboxWithState && (
e.stopPropagation()}
/>
)}
{/* Same shrink wrapper as TreeNode, or a long id overruns its neighbours. */}
{renderItem ? (
renderItem({
item,
level,
isLeaf: true,
isSelected,
hasChildren: false,
})
) : (
)}
);
}