'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { cn, isRouteActive } from '../lib/utils'; import { Button } from '../shadcn/button'; import { NavigationMenu, NavigationMenuItem, NavigationMenuList, } from '../shadcn/navigation-menu'; import { Trans } from './trans'; export function BorderedNavigationMenu(props: React.PropsWithChildren) { return ( {props.children} ); } export function BorderedNavigationMenuItem(props: { path: string; label: React.ReactNode | string; end?: boolean | ((path: string) => boolean); active?: boolean; className?: string; buttonClassName?: string; }) { const pathname = usePathname(); const active = props.active ?? isRouteActive(props.path, pathname, props.end); return ( ); }