<NavLink
to="users"
className={({ isActive }) => (isActive ? 'active' : 'inactive')}
>
Users
</NavLink>
<NavLink
to="/faq"
style={isActive => ({
color: isActive ? "green" : "blue"
})}
>
FAQs
</NavLink>
<NavLink
key={tab.id}
className={(navData) =>
navData.isActive ? styles.activeTab : styles.inactiveTab
}
to={tab.path}
>
{tab.name}
</NavLink>