'use client';
import { useState } from 'react';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { ArrowRight, Sparkles, Menu, X } from 'lucide-react';
export default function Navbar() {
const pathname = usePathname();
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
const isActive = (path: string) => pathname === path;
const navLinks = [
{ href: '/dashboard', label: 'Dashboard', icon: Sparkles, purple: true },
{ href: '/ora', label: 'About ORA' },
{ href: '/features', label: 'Features' },
{ href: '/pricing', label: 'Pricing' },
];
return (
<>
{/* Mobile Menu Overlay */}
setMobileMenuOpen(false)}
/>
{/* Mobile Menu Panel */}
{navLinks.map((link) => (
setMobileMenuOpen(false)}
className={`flex items-center gap-3 px-4 py-3 rounded-xl transition-colors ${
isActive(link.href)
? (link.purple ? 'bg-purple-500/10 text-purple-400' : 'bg-amber-500/10 text-amber-400')
: 'text-white/70 hover:bg-white/5 hover:text-white'
}`}
>
{link.icon && }
{link.label}
))}
{/* Mobile CTA */}
setMobileMenuOpen(false)}
className="flex items-center justify-center gap-2 w-full px-4 py-3 rounded-xl bg-purple-600 text-white font-semibold hover:bg-purple-500 transition-colors"
>
Try ORA
>
);
}