34 lines
918 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'
2022-01-26 15:43:18 -06:00
import Search from './search'
2021-04-12 13:05:09 -05:00
2022-02-17 11:23:43 -06:00
export default function Layout ({
sub, noContain, noFooter, noFooterLinks,
containClassName, noSeo, children
}) {
2021-04-12 13:05:09 -05:00
return (
<>
2022-02-17 11:23:43 -06:00
{!noSeo && <Seo sub={sub} />}
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>
2022-02-17 11:23:43 -06:00
<Header sub={sub} />
2021-04-22 17:14:32 -05:00
{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} />}
2022-02-17 11:23:43 -06:00
{!noContain && <Search sub={sub} />}
2021-04-22 17:14:32 -05:00
</LightningProvider>
2021-04-12 13:05:09 -05:00
</>
)
}