mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-23 15:09:46 +00:00
23 lines
625 B
JavaScript
23 lines
625 B
JavaScript
import { siteConfig } from '@/lib/config'
|
|
import SmartLink from '@/components/SmartLink'
|
|
/**
|
|
* 站点logo
|
|
* 这里默认只支持纯文字
|
|
* @param {*} props
|
|
* @returns
|
|
*/
|
|
const Logo = props => {
|
|
const { siteInfo } = props
|
|
return (
|
|
<SmartLink href='/' passHref legacyBehavior>
|
|
<div className='flex flex-col justify-center items-center cursor-pointer space-y-3'>
|
|
<div className=' text-lg p-1.5 rounded dark:border-white hover:scale-110 transform duration-200'>
|
|
{' '}
|
|
{siteInfo?.title || siteConfig('TITLE')}
|
|
</div>
|
|
</div>
|
|
</SmartLink>
|
|
)
|
|
}
|
|
export default Logo
|