HomeButton.tsx raw
1 import { usePrimaryPage } from '@/PageManager'
2 import { Home } from 'lucide-react'
3 import BottomNavigationBarItem from './BottomNavigationBarItem'
4
5 export default function HomeButton() {
6 const { navigate, current, display } = usePrimaryPage()
7
8 return (
9 <BottomNavigationBarItem
10 active={current === 'home' && display}
11 onClick={() => navigate('home')}
12 >
13 <Home />
14 </BottomNavigationBarItem>
15 )
16 }
17