'use client' import Link from 'next/link' import { usePathname } from 'next/navigation' import { Logo } from '@/components/logo' import { Menu, X } from 'lucide-react' import { Button } from '@/components/ui/button' import React from 'react' import { cn } from '@/lib/utils' import { ThemeToggle } from '@/components/theme-toggle' const menuItems = [ { name: 'صفحه اصلی', href: '/' }, { name: 'بلاگ', href: '/blog' }, { name: 'راه حل‌ها', href: '/solutions' }, // { name: 'قیمت‌گذاری', href: '/pricing' }, { name: 'درباره ما', href: '/about' }, ] function isLinkActive(pathname: string, href: string): boolean { if (href === '/') return pathname === '/' return pathname === href || pathname.startsWith(href + '/') } export const HeroHeader = () => { const pathname = usePathname() const [menuState, setMenuState] = React.useState(false) const [isScrolled, setIsScrolled] = React.useState(false) React.useEffect(() => { const handleScroll = () => { setIsScrolled(window.scrollY > 50) } window.addEventListener('scroll', handleScroll) return () => window.removeEventListener('scroll', handleScroll) }, []) return (
) }