"use client" import { useState } from "react" import { Menu, X, Camera } from "lucide-react" import { Button } from "@/components/ui/button" interface NavigationProps { activeTab: string onTabChange: (tab: string) => void } export function Navigation({ activeTab, onTabChange }: NavigationProps) { const [isMenuOpen, setIsMenuOpen] = useState(false) const navItems = [ { id: "gallery", name: "作品集", href: "#gallery" }, { id: "categories", name: "分类", href: "#categories" }, { id: "tags", name: "标签", href: "#tags" }, { id: "timeline", name: "时间线", href: "#timeline" }, { id: "about", name: "关于我", href: "#about" }, { id: "contact", name: "联系", href: "#contact" }, ] const handleTabClick = (item: { id: string; name: string; href: string }) => { // Handle all tabs, not just gallery and timeline onTabChange(item.id) setIsMenuOpen(false) } return ( ) } // test change