'use client'; // هدر ثابت بالای صفحه: لوگو، منوی ناوبری، سوییچ زبان/تم، دکمه ورود به پنل کاربری و آیکون سبد خرید. import {useState, useEffect} from 'react'; import Image from 'next/image'; import {Badge, Button} from 'antd'; import {ShoppingCartOutlined, MenuOutlined, CloseOutlined, UserOutlined} from '@ant-design/icons'; import {useSelector, useDispatch} from 'react-redux'; import {selectCartCount, openDrawer} from '@/store/cartSlice'; import {useLanguage} from '@/app/context/LanguageContext'; import ThemeToggle from './ThemeToggle'; import LanguageToggle from './LanguageToggle'; export default function Header() { const dispatch = useDispatch(); const cartCount = useSelector(selectCartCount); const {t} = useLanguage(); const [scrolled, setScrolled] = useState(false); const [mobileOpen, setMobileOpen] = useState(false); const navLinks = [ {href: '#hero', label: t.nav.home}, {href: '#showcase', label: t.nav.showcase}, {href: '#about', label: t.nav.about}, // {href: '#catalog', label: t.nav.catalog}, {href: '#locations', label: t.nav.locations}, // {href: '#video', label: t.nav.video}, // {href: '#map', label: t.nav.map}, // {href: '#support', label: t.nav.support}, ]; useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 24); window.addEventListener('scroll', onScroll); return () => window.removeEventListener('scroll', onScroll); }, []); console.log( "%c👋 Hamed Abdollahzade · Frontend Developer", "font-size:14px;font-weight:600;" ); return (
روبات مارکت
{/* faz 1 */} {/*
{mobileOpen && ( )}
); }