import { useGlobal } from '@/lib/global' import Link from 'next/link' /** * 菜单导航 * @param {*} props * @returns */ export const Nav = (props) => { const { customNav } = props const { locale } = useGlobal() let links = [ { icon: 'fas fa-search', name: locale.NAV.SEARCH, to: '/search' }, { icon: 'fas fa-archive', name: locale.NAV.ARCHIVE, to: '/archive' }, { icon: 'fas fa-folder', name: locale.COMMON.CATEGORY, to: '/category' }, { icon: 'fas fa-tag', name: locale.COMMON.TAGS, to: '/tag' } ] if (customNav) { links = links.concat(customNav) } return }