2020-03-04 00:56:39 +00:00
|
|
|
import React from 'react'
|
|
|
|
import Nav from '../components/nav'
|
|
|
|
import Footer from '../components/footer'
|
2021-05-15 20:08:57 +00:00
|
|
|
import * as layoutStyles from './layout.module.css'
|
2019-12-11 21:34:32 +00:00
|
|
|
|
2021-05-15 20:08:57 +00:00
|
|
|
export default function Layout({ path, editLink, children }) {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Nav path={path} />
|
|
|
|
<main className={layoutStyles.layout}>
|
|
|
|
<article>{children}</article>
|
|
|
|
</main>
|
|
|
|
<Footer editLink={editLink} />
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|