create navigation bar component
This commit is contained in:
21
src/components/navigation.jsx
Normal file
21
src/components/navigation.jsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import styled from 'styled-components'
|
||||
import { Container } from '../styled'
|
||||
|
||||
import Error from './error'
|
||||
|
||||
const NavigationContainer = styled(Container)`
|
||||
@media only screen and (max-width: 800px) {
|
||||
justify-content: center;
|
||||
}
|
||||
`
|
||||
const Navigation = ({ info }) => {
|
||||
const { errors, lastError } = info
|
||||
|
||||
return (
|
||||
<NavigationContainer>
|
||||
<Error errorCount={errors} lastError={lastError} />
|
||||
</NavigationContainer>
|
||||
)
|
||||
}
|
||||
|
||||
export default Navigation
|
||||
Reference in New Issue
Block a user