Files
linea-monorepo/bridge-ui/src/components/internal-nav/index.tsx
Victorien Gauch 5b09005765 Feat: add lifi and small fixes (#798)
* fix: add gitattribute rules for woff2 files

* feat: add lifi widget + fixes minor issues

* fix: remove unused packages + clean constants declaration and config

* fix: update dockerfile and github ci workflows

* fix: env variable naming issue

* fix: bridge mode alt value issue + remove button component
2025-03-24 14:28:42 +01:00

31 lines
630 B
TypeScript

"use client";
import { usePathname } from "next/navigation";
import styles from "./internal-nav.module.scss";
import NavItem from "./item";
const NavData = [
{
title: "All Bridges",
href: "/",
},
{
title: "Native Bridge",
href: "/native-bridge",
},
];
export default function InternalNav() {
const pathnane = usePathname();
return (
<div className={styles["wrapper"]}>
<div className={styles["list-nav"]}>
{NavData.map((item, index) => (
<NavItem key={`internal-nav-item-${index}`} {...item} active={pathnane === item.href} />
))}
</div>
</div>
);
}