'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { useTranslations } from 'next-intl'; import { Code2, BookOpen, Mail, Sparkles, Terminal } from 'lucide-react'; export function Navbar({ locale }: { locale: string }) { const t = useTranslations('nav'); const pathname = usePathname(); const navItems = [ { href: `/${locale}`, label: t('home'), icon: Sparkles }, { href: `/${locale}/lessons`, label: t('lessons'), icon: Code2 }, { href: `/${locale}/cheatsheets`, label: t('cheatsheets'), icon: BookOpen }, { href: `/${locale}/prompts`, label: 'Prompts', icon: Terminal }, { href: `/${locale}/contact`, label: t('contact'), icon: Mail }, ]; return (
{/* Logo & Brand */}
ayris.tech Logo
ayris.tech YouTube Educational Code & Resource Hub
{/* Center Nav Links */} {/* Right Action: YouTube Subscribe */}
Logo {t('subscribe')}
); }