create navigation bar component

This commit is contained in:
controlol
2021-10-30 22:47:57 +02:00
parent 4a1e72a871
commit 1998325265

View 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