2024-02-23 09:32:20 -06:00
|
|
|
import { Nav, Navbar } from 'react-bootstrap'
|
2024-03-27 16:29:04 -05:00
|
|
|
import { NavPrice, Sorts, hasNavSelect } from '../common'
|
2024-02-23 09:32:20 -06:00
|
|
|
import styles from '../../header.module.css'
|
|
|
|
|
|
|
|
export default function SecondBar (props) {
|
|
|
|
const { topNavKey } = props
|
2024-03-27 16:29:04 -05:00
|
|
|
if (!hasNavSelect(props)) return null
|
2024-02-23 09:32:20 -06:00
|
|
|
return (
|
|
|
|
<Navbar>
|
|
|
|
<Nav
|
|
|
|
className={styles.navbarNav}
|
|
|
|
activeKey={topNavKey}
|
|
|
|
>
|
|
|
|
<Sorts {...props} />
|
|
|
|
<NavPrice className='justify-content-end' />
|
|
|
|
</Nav>
|
|
|
|
</Navbar>
|
|
|
|
)
|
|
|
|
}
|