import SearchInput from './SearchInput' import TagItemMini from './TagItemMini' import Card from './Card' import Link from 'next/link' import { useEffect, useRef } from 'react' import { useGlobal } from '@/lib/global' /** * 搜索页面的导航条 * @param {*} props * @returns */ export default function SearchNave(props) { const cRef = useRef(null) const { locale } = useGlobal() const { tagOptions, categoryOptions } = props useEffect(() => { setTimeout(() => { // 自动聚焦到搜索框 cRef?.current?.focus() }, 100) }) return <>