|
1
|
import React from "react" |
|
2
|
import { RootLayout, RootLayoutProps } from "./root" |
|
3
|
import clsx from "clsx" |
|
4
|
import { Breadcrumbs } from ".." |
|
5
|
|
|
6
|
export const TightLayout = ({ |
|
7
|
children, |
|
8
|
footerComponent, |
|
9
|
showBreadcrumbs = true, |
|
10
|
...props |
|
11
|
}: RootLayoutProps) => { |
|
12
|
return ( |
|
13
|
<RootLayout {...props}> |
|
14
|
<div |
|
15
|
className={clsx( |
|
16
|
"w-full h-fit", |
|
17
|
"max-w-inner-content-xs sm:max-w-inner-content-sm md:max-w-inner-content-md", |
|
18
|
"lg:max-w-inner-content-lg xl:max-w-inner-content-xl xxl:max-w-inner-content-xxl", |
|
19
|
"xxxl:max-w-inner-content-xxxl", |
|
20
|
"px-docs_1 md:px-docs_4 lg:px-0" |
|
21
|
)} |
|
22
|
> |
|
23
|
{showBreadcrumbs && <Breadcrumbs />} |
|
24
|
{children} |
|
25
|
{footerComponent} |
|
26
|
</div> |
|
27
|
</RootLayout> |
|
28
|
) |
|
29
|
} |