15 lines
256 B
JavaScript
15 lines
256 B
JavaScript
import Link from "next/link";
|
|
const NavItem = ({ text, href, active }) => {
|
|
return (
|
|
<Link href={href} className={`nav__item ${
|
|
active ? "active" : ""
|
|
}`}>
|
|
|
|
|
|
{text}
|
|
|
|
</Link>
|
|
);
|
|
};
|
|
|
|
export default NavItem; |