Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function NavTabs({ links }) {
let color = colors.greyLink;
return (
<ul>
{links.map((link, index) => {
color = gradient(color, 1.5);
const content = link.label ? <p>{link.label}</p> : link.compo || null;
return (
{content}
</ul>