mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
30 lines
755 B
JavaScript
30 lines
755 B
JavaScript
import LazyImage from '@/components/LazyImage'
|
|
import { siteConfig } from '@/lib/config'
|
|
import Link from 'next/link'
|
|
import CONFIG from '../config'
|
|
|
|
/**
|
|
* Logo区域
|
|
* @param {*} props
|
|
* @returns
|
|
*/
|
|
export default function LogoBar(props) {
|
|
const { siteInfo } = props
|
|
return (
|
|
<div id='top-wrapper' className='w-full flex items-center'>
|
|
<Link
|
|
href={`/${siteConfig('GITBOOK_INDEX_PAGE', '', CONFIG)}`}
|
|
className='flex text-md md:text-xl dark:text-gray-200'>
|
|
<LazyImage
|
|
src={siteInfo?.icon}
|
|
width={24}
|
|
height={24}
|
|
alt={siteConfig('AUTHOR')}
|
|
className='mr-2 hidden md:block'
|
|
/>
|
|
{siteInfo?.title || siteConfig('TITLE')}
|
|
</Link>
|
|
</div>
|
|
)
|
|
}
|