Download themes/gitbook/components/BottomMenuBar.js from sandy-try/blog: direct link, hf CLI and curl.
- Browser
- Download file 895 Bytes
-
https://huggingface.co/spaces/sandy-try/blog/resolve/main/themes/gitbook/components/BottomMenuBar.js
- Command line
-
hf download hf://spaces/sandy-try/blog/themes/gitbook/components/BottomMenuBar.js
-
curl -L -o BottomMenuBar.js https://huggingface.co/spaces/sandy-try/blog/resolve/main/themes/gitbook/components/BottomMenuBar.js
895 Bytes
| import { useGitBookGlobal } from '@/themes/gitbook' | |
| 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> | |
| ) | |
| } | |