search sscreen

This commit is contained in:
2024-05-04 12:32:19 +03:00
parent 3652b99f4c
commit bb49021fb8
14 changed files with 696 additions and 46 deletions
+7 -4
View File
@@ -11,13 +11,16 @@ const navList = [
{ title: "Эризоды", href: "#04" },
];
export function NavPanel() {
export function NavPanel({ currentNavElement }) {
return (
<Nav className="nav">
<Nav>
<NavList>
{navList.map((element, index) => (
{navList.map((element) => (
<li key={element.href}>
<Link contrast={Boolean(index)} href={element.href}>
<Link
contrast={currentNavElement === element.title}
href={element.href}
>
{element.title}
</Link>
</li>