17 lines
428 B
TypeScript
17 lines
428 B
TypeScript
import { usePrimaryPage } from '@/PageManager'
|
|
import { Home } from 'lucide-react'
|
|
import BottomNavigationBarItem from './BottomNavigationBarItem'
|
|
|
|
export default function HomeButton() {
|
|
const { navigate, current, display } = usePrimaryPage()
|
|
|
|
return (
|
|
<BottomNavigationBarItem
|
|
active={current === 'home' && display}
|
|
onClick={() => navigate('home')}
|
|
>
|
|
<Home />
|
|
</BottomNavigationBarItem>
|
|
)
|
|
}
|