Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const calculatedProps = injectItemProps(params);
const nextLevel = level + 1;
const menu = (
(
)}
{...MenuToggle.getOverrides(css, props)}
/>
);
if (subMenus) {
return (
<li>
{menu}
{subMenus && (
{/* eslint-disable-next-line no-use-before-define */}
{renderList(subMenus, nextLevel, [key, ...keyPath])}
)}
</li>
);
}
return menu;
renderToggle={toggleProps => (
)}
{...MenuToggle.getOverrides(css, props)}