2024-02-23 15:32:20 +00:00
|
|
|
import { Nav, Navbar } from 'react-bootstrap'
|
2024-03-27 21:29:04 +00:00
|
|
|
import { NavSelect, PostItem, Sorts, hasNavSelect } from '../common'
|
2024-02-23 15:32:20 +00:00
|
|
|
import styles from '../../header.module.css'
|
|
|
|
|
|
|
|
export default function SecondBar (props) {
|
|
|
|
const { prefix, topNavKey, sub } = props
|
2024-03-27 21:29:04 +00:00
|
|
|
if (!hasNavSelect(props)) return null
|
2024-02-23 15:32:20 +00:00
|
|
|
return (
|
2024-07-11 21:58:55 +00:00
|
|
|
<Navbar className='pt-0 pb-2'>
|
2024-02-23 15:32:20 +00:00
|
|
|
<Nav
|
|
|
|
className={styles.navbarNav}
|
|
|
|
activeKey={topNavKey}
|
|
|
|
>
|
|
|
|
<NavSelect sub={sub} size='medium' className='me-1' />
|
2024-03-28 17:33:58 +00:00
|
|
|
<div className='ms-2 d-flex'><Sorts {...props} className='ms-1' /></div>
|
2024-02-23 15:32:20 +00:00
|
|
|
<PostItem className='ms-auto me-0 d-none d-md-flex' prefix={prefix} />
|
|
|
|
</Nav>
|
|
|
|
</Navbar>
|
|
|
|
)
|
|
|
|
}
|