2021-04-12 18:05:09 +00:00
|
|
|
import Header from './header'
|
2021-04-14 23:56:29 +00:00
|
|
|
import Container from 'react-bootstrap/Container'
|
2021-04-22 22:14:32 +00:00
|
|
|
import { LightningProvider } from './lightning'
|
2021-06-02 23:15:28 +00:00
|
|
|
import Footer from './footer'
|
2021-07-08 00:15:27 +00:00
|
|
|
import Seo from './seo'
|
2022-01-26 21:43:18 +00:00
|
|
|
import Search from './search'
|
2021-04-12 18:05:09 +00:00
|
|
|
|
2022-02-17 17:23:43 +00:00
|
|
|
export default function Layout ({
|
|
|
|
sub, noContain, noFooter, noFooterLinks,
|
2023-05-01 20:58:30 +00:00
|
|
|
containClassName, noSeo, children, search
|
2022-02-17 17:23:43 +00:00
|
|
|
}) {
|
2021-04-12 18:05:09 +00:00
|
|
|
return (
|
|
|
|
<>
|
2022-02-17 17:23:43 +00:00
|
|
|
{!noSeo && <Seo sub={sub} />}
|
2021-04-22 22:14:32 +00:00
|
|
|
<LightningProvider>
|
2022-02-17 17:23:43 +00:00
|
|
|
<Header sub={sub} />
|
2021-04-22 22:14:32 +00:00
|
|
|
{noContain
|
|
|
|
? children
|
|
|
|
: (
|
2021-09-23 17:42:00 +00:00
|
|
|
<Container className={`px-sm-0 ${containClassName || ''}`}>
|
2021-04-22 22:14:32 +00:00
|
|
|
{children}
|
|
|
|
</Container>
|
|
|
|
)}
|
2021-08-26 21:22:37 +00:00
|
|
|
{!noFooter && <Footer noLinks={noFooterLinks} />}
|
2023-05-01 20:58:30 +00:00
|
|
|
{!noContain && search && <Search sub={sub} />}
|
2021-04-22 22:14:32 +00:00
|
|
|
</LightningProvider>
|
2021-04-12 18:05:09 +00:00
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|