'use client' import { useState } from 'react' import Link from 'next/link' import { usePathname } from 'next/navigation' import { useAuth } from '@/contexts/AuthContext' interface NavigationProps { showExitLearning?: boolean onExitLearning?: () => void } export function Navigation({ showExitLearning = false, onExitLearning }: NavigationProps = {}) { const { user, logout } = useAuth() const pathname = usePathname() const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false) const navItems = [ { href: '/dashboard', label: '儀表板' }, { href: '/flashcards', label: '詞卡' }, { href: '/review', label: '複習' }, { href: '/generate', label: 'AI 生成' } ] return ( ) }