import Link from 'next/link' import BLOG from '@/blog.config' import React, { useRef } from 'react' import DarkModeButton from '@/components/DarkModeButton' import SearchInput from '@/components/SearchInput' import Drawer from '@/components/Drawer' import DrawerRight from '@/components/DrawerRight' const TopNav = ({ tags, currentTag, post }) => { const drawer = useRef() const drawerRight = useRef() return (<> {/* 侧面抽屉 */} {/* 导航栏 */} {/* 左侧LOGO */} { drawer.current.handleMenuClick() }} className='fixed top-3 left-0 z-30 py-1 px-5 text-gray-600 text-2xl cursor-pointer dark:text-gray-300'> {BLOG.title} {/* 中间搜索框 */} {/* 右侧功能 */} {post && ( { drawerRight.current.handleMenuClick() }}/> )} >) } export default TopNav