Files
NotionNext/themes/magzine/components/LogoBar.js
2025-02-04 20:35:46 +08:00

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>
)
}