mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-23 07:26:47 +00:00
26 lines
761 B
JavaScript
26 lines
761 B
JavaScript
import LazyImage from '@/components/LazyImage'
|
|
import { siteConfig } from '@/lib/config'
|
|
import Link from 'next/link'
|
|
|
|
export default function LogoBar({ siteInfo, className }) {
|
|
return (
|
|
<div
|
|
id='top-wrapper'
|
|
className={`w-full flex items-center ${className || ''}`}>
|
|
<Link
|
|
href='/'
|
|
className='inline-flex items-center whitespace-nowrap logo font-semibold hover:bg-black hover:text-white p-2 rounded-xl duration-200 dark:text-gray-200'>
|
|
<LazyImage
|
|
priority
|
|
src={siteInfo?.icon}
|
|
width={24}
|
|
height={20}
|
|
alt={siteConfig('AUTHOR')}
|
|
className='mr-2 hidden md:inline-block'
|
|
/>
|
|
<span>{siteConfig('TITLE')}</span>
|
|
</Link>
|
|
</div>
|
|
)
|
|
}
|