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