Files
smesh/src/components/Sidebar/ExploreButton.tsx
2025-10-17 23:34:56 +08:00

21 lines
542 B
TypeScript

import { usePrimaryPage } from '@/PageManager'
import { Compass } from 'lucide-react'
import { useTranslation } from 'react-i18next'
import SidebarItem from './SidebarItem'
export default function RelaysButton({ collapse }: { collapse: boolean }) {
const { t } = useTranslation()
const { navigate, current } = usePrimaryPage()
return (
<SidebarItem
title={t('Explore')}
onClick={() => navigate('explore')}
active={current === 'explore'}
collapse={collapse}
>
<Compass />
</SidebarItem>
)
}