2021-04-12 13:05:09 -05:00
|
|
|
import Header from './header'
|
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,
|
2023-05-01 15:58:30 -05:00
|
|
|
containClassName, noSeo, children, search
|
2022-02-17 11:23:43 -06:00
|
|
|
}) {
|
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>
|
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} />}
|
2023-05-01 15:58:30 -05:00
|
|
|
{!noContain && search && <Search sub={sub} />}
|
2021-04-22 17:14:32 -05:00
|
|
|
</LightningProvider>
|
2021-04-12 13:05:09 -05:00
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|