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