mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 15:38:06 -05:00
* 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
31 lines
630 B
TypeScript
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>
|
|
);
|
|
}
|