mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 15:09:22 +00:00
25 lines
918 B
JavaScript
25 lines
918 B
JavaScript
import React from 'react'
|
|
import { useGitBookGlobal } from '../LayoutBase'
|
|
import JumpToTopButton from './JumpToTopButton'
|
|
|
|
export default function BottomMenuBar({ post, className }) {
|
|
const { pageNavVisible, changePageNavVisible } = useGitBookGlobal()
|
|
|
|
const togglePageNavVisible = () => {
|
|
changePageNavVisible(!pageNavVisible)
|
|
}
|
|
|
|
return (
|
|
<div className={'sticky z-10 bottom-0 w-full h-12 bg-white dark:bg-hexo-black-gray ' + className}>
|
|
<div className='flex justify-between h-full shadow-card'>
|
|
<div onClick={togglePageNavVisible} className='flex w-full items-center justify-center cursor-pointer'>
|
|
<i className="fa-solid fa-book"></i>
|
|
</div>
|
|
<div className='flex w-full items-center justify-center cursor-pointer'>
|
|
<JumpToTopButton />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|