stacker.news/components/nav/desktop/second-bar.js

21 lines
676 B
JavaScript
Raw Normal View History

2024-02-23 15:32:20 +00:00
import { Nav, Navbar } from 'react-bootstrap'
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
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>
)
}