Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
) => {
const { key } = itemProps;
const { divider, subheader } = item;
if (divider) {
return ;
}
if (subheader) {
return (
{item.children}
);
}
return defaultTreeItemRenderer(itemProps, item, treeProps);
};