remove duplicate component

This commit is contained in:
Alexander Navarro 2023-08-20 13:53:35 -04:00
parent b187c50fb1
commit 525d4de3cd

View file

@ -1,29 +0,0 @@
import React from 'react';
interface Props {
links: Array<{ href: string; text: string }>;
}
export default function Navbar(props: Props): JSX.Element {
return (
<nav className="navbar navbar-expand-lg bg-body-tertiary">
<ul className="list-unstyle hstack">
{props.links.map((link, idx) => (
<li className="nav-item" key={idx}>
{/* TODO: active logic doesnt work in prod because is compiled --> */}
<a
className={
'nav-link' + window.location.pathname === link.href
? 'active'
: ''
}
href={link.href}
>
{link.text}
</a>
</li>
))}
</ul>
</nav>
);
}