'use client'; import { cn } from '@/lib/utils'; import { usePathname } from 'next/navigation'; let links = [ { href: '', label: 'Applications' }, { href: 'databases', label: 'Databases' }, { href: 'registry', label: 'Registry' }, { href: 'settings', label: 'Settings' }, ]; export default function Navigation() { let pathname = usePathname(); return ( ); } function checkPathname(pathname: string, href: string): boolean { const route = pathname.split('/')[2] || ''; if (route === href) return true; return false; } function setHref(pathname: string, href: string): string { const route = pathname.split('/')[1]; if (!route) return ''; return `/${route}/${href}`; }