Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const createMenuItem = (item, selectType) => {
if (item.children.length > 0) {
return (
type === ContentType.text).map(({ value }) => value).join('') : ''}>
{createContents(item.children, selectType)}
);
}
let Item = Menu.Item;
if (selectType === 'checkbox') {
Item = Menu.CheckboxItem;
} else if (selectType === 'radio') {
Item = Menu.RadioItem;
}
return type === 'icon' ? : value)} />;
};