Files
NotionNext/themes/magzine/components/LogoBar.js
2025-07-24 16:43:20 +08:00

26 lines
789 B
JavaScript

import LazyImage from '@/components/LazyImage'
import { siteConfig } from '@/lib/config'
import SmartLink from '@/components/SmartLink'
export default function LogoBar({ siteInfo, className }) {
return (
<div
id='top-wrapper'
className={`w-full flex items-center ${className || ''}`}>
<SmartLink
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>
</SmartLink>
</div>
)
}