29 lines
814 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-09-23 12:42:00 -05:00
export default function Layout ({ noContain, noFooter, noFooterLinks, containClassName, noSeo, children }) {
2021-04-12 13:05:09 -05:00
return (
<>
2021-07-07 19:34:23 -05:00
{!noSeo && <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-09-23 12:42:00 -05:00
<Container className={`px-sm-0 ${containClassName || ''}`}>
2021-04-22 17:14:32 -05:00
{children}
</Container>
)}
2021-08-26 16:22:37 -05:00
{!noFooter && <Footer noLinks={noFooterLinks} />}
2021-04-22 17:14:32 -05:00
</LightningProvider>
2021-04-12 13:05:09 -05:00
</>
)
}