29 lines
715 B
JavaScript
Raw Normal View History

2021-04-12 13:05:09 -05:00
import Header from './header'
2021-04-30 16:42:51 -05:00
import Head from 'next/head'
2021-04-14 18:56:29 -05:00
import Container from 'react-bootstrap/Container'
2021-04-22 17:14:32 -05:00
import { LightningProvider } from './lightning'
2021-06-02 19:15:28 -04:00
import Footer from './footer'
2021-07-07 19:15:27 -05:00
import Seo from './seo'
2021-04-12 13:05:09 -05:00
2021-06-03 16:36:02 -04:00
export default function Layout ({ noContain, noFooter, children }) {
2021-04-12 13:05:09 -05:00
return (
<>
2021-07-07 19:15:27 -05:00
<Seo />
2021-04-22 17:14:32 -05:00
<LightningProvider>
2021-04-30 16:42:51 -05:00
<Head>
<meta name='viewport' content='initial-scale=1.0, width=device-width' />
</Head>
2021-04-22 17:14:32 -05:00
<Header />
{noContain
? children
: (
2021-06-22 12:47:49 -05:00
<Container className='mt-1 px-sm-0'>
2021-04-22 17:14:32 -05:00
{children}
</Container>
)}
2021-06-03 16:36:02 -04:00
{!noFooter && <Footer />}
2021-04-22 17:14:32 -05:00
</LightningProvider>
2021-04-12 13:05:09 -05:00
</>
)
}