mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 15:09:22 +00:00
27 lines
681 B
JavaScript
27 lines
681 B
JavaScript
import { useGameGlobal } from '..'
|
|
import Logo from './Logo'
|
|
|
|
/**
|
|
* 顶栏
|
|
* @returns
|
|
*/
|
|
export default function Header(props) {
|
|
const { siteInfo } = props
|
|
const { setSideBarVisible } = useGameGlobal()
|
|
return (
|
|
<header className='z-20'>
|
|
<div className='w-full h-16 rounded-md bg-white shadow-md hover:shadow-xl transition-shadow duration-200 dark:bg-[#1F2030] flex justify-between items-center px-4'>
|
|
<Logo siteInfo={siteInfo} />
|
|
|
|
<button
|
|
className='flex xl:hidden'
|
|
onClick={() => {
|
|
setSideBarVisible(true)
|
|
}}>
|
|
<i className='fas fa-search' />
|
|
</button>
|
|
</div>
|
|
</header>
|
|
)
|
|
}
|