mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-17 07:26:46 +00:00
30 lines
797 B
JavaScript
30 lines
797 B
JavaScript
import { BeiAnGongAn } from '@/components/BeiAnGongAn'
|
|
import DarkModeButton from '@/components/DarkModeButton'
|
|
import { siteConfig } from '@/lib/config'
|
|
|
|
/**
|
|
* 页脚
|
|
* @param {*} props
|
|
* @returns
|
|
*/
|
|
export default function Footer(props) {
|
|
const d = new Date()
|
|
const currentYear = d.getFullYear()
|
|
const since = siteConfig('SINCE')
|
|
const copyrightDate =
|
|
parseInt(since) < currentYear ? since + '-' + currentYear : currentYear
|
|
|
|
return (
|
|
<footer>
|
|
<DarkModeButton className='pt-4' />
|
|
|
|
<div className='font-bold text-[var(--primary-color)] dark:text-white py-6 text-sm flex flex-col gap-2 items-center'>
|
|
<div>
|
|
©{`${copyrightDate}`} {siteConfig('AUTHOR')}.
|
|
</div>
|
|
<div>All rights reserved.</div>
|
|
</div>
|
|
</footer>
|
|
)
|
|
}
|