mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
28 lines
784 B
JavaScript
28 lines
784 B
JavaScript
import MobileButtonCatalog from './MobileButtonCatalog'
|
|
import MobileButtonPageNav from './MobileButtonPageNav'
|
|
|
|
/**
|
|
* 移动端底部导航
|
|
* @param {*} param0
|
|
* @returns
|
|
*/
|
|
export default function BottomMenuBar({ post, className }) {
|
|
const showTocButton = post?.toc?.length > 1
|
|
|
|
return (
|
|
<>
|
|
{/* 移动端底部导航按钮 */}
|
|
<div className='dark:bg-hexo-black-gray bottom-button-group md:hidden w-screen h-14 px-4 fixed flex items-center justify-between right-left bottom-0 z-30 bg-white border-t dark:border-gray-800'>
|
|
<div className='w-full'>
|
|
<MobileButtonPageNav />
|
|
</div>
|
|
{showTocButton && (
|
|
<div className='w-full'>
|
|
<MobileButtonCatalog />
|
|
</div>
|
|
)}
|
|
</div>
|
|
</>
|
|
)
|
|
}
|