import BLOG from '@/blog.config' import { useGlobal } from '@/lib/global' import Link from 'next/link' import { useRouter } from 'next/router' /** * 标签组 * @param tags * @param currentTag * @returns {JSX.Element} * @constructor */ const SideBar = (props) => { const { siteInfo, customNav } = props const { locale } = useGlobal() const router = useRouter() const defaultLinks = [ { icon: 'fas fa-home', name: locale.NAV.INDEX, to: '/' || '/', show: true }, { icon: 'fas fa-tag', name: locale.COMMON.TAGS, to: '/tag', show: true }, { icon: 'fas fa-archive', name: locale.NAV.ARCHIVE, to: '/archive', show: true } ] let links = [].concat(defaultLinks) if (customNav) { links = defaultLinks.concat(customNav) } return ( ) } export default SideBar