mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-24 15:09:51 +00:00
init game theme
This commit is contained in:
30
themes/game/components/MenuList.js
Normal file
30
themes/game/components/MenuList.js
Normal file
@@ -0,0 +1,30 @@
|
||||
import Link from 'next/link'
|
||||
import { useGameGlobal } from '..'
|
||||
|
||||
export const MenuList = () => {
|
||||
const { setSideBarVisible } = useGameGlobal()
|
||||
return (
|
||||
<div>
|
||||
<ul>
|
||||
<li className='text-white py-4 px-2 font-bold hover:underline'>
|
||||
<Link href='/' passHref>
|
||||
<span className='flex items-center gap-2'>
|
||||
<i className='fas fa-home' />
|
||||
Home
|
||||
</span>
|
||||
</Link>
|
||||
</li>
|
||||
<li className='text-white py-4 px-2 font-bold hover:underline'>
|
||||
<button
|
||||
className='flex items-center gap-2'
|
||||
onClick={() => {
|
||||
setSideBarVisible(true)
|
||||
}}>
|
||||
<i className='fas fa-search' />
|
||||
<span>Search</span>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user