"use client" import type React from "react" import {useState} from "react" import {Drawer} from "antd" import Image from "next/image" import Link from "next/link" import {usePathname} from "next/navigation" import {MenuIcon, PhoneCall, X} from "lucide-react" const Navigation: React.FC = () => { const pathname = usePathname() const [mobileMenuOpen, setMobileMenuOpen] = useState(false) const pathToKey: { [key: string]: string } = { "/": "home", "/products": "products", "/solutions": "solutions", "/news": "news", "/support": "support", "/about": "about", "/business": "business", } const selectedKey = pathToKey[pathname] || "" const menuItems = [ { key: "home", label: "首页", href: "/" }, { key: "products", label: "产品中心", href: "/products" }, { key: "solutions", label: "解决方案", href: "/solutions" }, { key: "news", label: "新闻动态", href: "/news" }, { key: "support", label: "服务支持", href: "/support" }, { key: "business", label: "商务合作", href: "/business" }, { key: "about", label: "关于我们", href: "/about" }, ] const handleMobileMenuClick = () => { setMobileMenuOpen(false) } return (
{/* Logo 区域 */}
{"logo"}/
{/* 桌面端菜单 */}
{/* 新增服务热线小组件 */}
24小时服务热线 400-666-7001
{/* 移动端菜单按钮 */}
{/* 移动端侧边菜单 */} setMobileMenuOpen(false)} open={mobileMenuOpen} width={280} closeIcon={} > {/* 移动端服务热线 */}
24小时服务热线 400-666-7001
) } export default Navigation