import BLOG from '@/blog.config' import { useGlobal } from '@/lib/global' import Link from 'next/link' import { useRouter } from 'next/router' import { useEffect, useState } from 'react' import CONFIG_HEXO from '../config_hexo' export default function ArticleCopyright () { if (!CONFIG_HEXO.ARTICLE_COPYRIGHT) { return <> } const router = useRouter() const [path, setPath] = useState(BLOG.LINK + router.asPath) useEffect(() => { setPath(window.location.href) }) const { locale } = useGlobal() return (
); }