You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
609 B
18 lines
609 B
import { usePrimaryPage } from '@/contexts/primary-page-context' |
|
import { usePrimaryNoteView } from '@/contexts/primary-note-view-context' |
|
import { Search } from 'lucide-react' |
|
import BottomNavigationBarItem from './BottomNavigationBarItem' |
|
|
|
export default function SearchButton() { |
|
const { navigate, current, display } = usePrimaryPage() |
|
const { primaryViewType } = usePrimaryNoteView() |
|
|
|
return ( |
|
<BottomNavigationBarItem |
|
active={current === 'search' && display && primaryViewType === null} |
|
onClick={() => navigate('search')} |
|
> |
|
<Search /> |
|
</BottomNavigationBarItem> |
|
) |
|
}
|
|
|