|
1
|
import React from "react" |
|
2
|
import { RootLayout, RootLayoutProps } from "./root" |
|
3
|
import clsx from "clsx" |
|
4
|
import { Breadcrumbs } from ".." |
|
5
|
|
|
6
|
export const WideLayout = ({ |
|
7
|
children, |
|
8
|
footerComponent, |
|
9
|
showBreadcrumbs = true, |
|
10
|
...props |
|
11
|
}: RootLayoutProps) => { |
|
12
|
return ( |
|
13
|
<RootLayout |
|
14
|
{...props} |
|
15
|
mainWrapperClasses={clsx(props.mainWrapperClasses, "mx-auto flex")} |
|
16
|
contentClassName="w-full" |
|
17
|
> |
|
18
|
<main className={clsx("relative mt-4 w-full flex-1 lg:mt-7")}> |
|
19
|
{showBreadcrumbs && <Breadcrumbs />} |
|
20
|
{children} |
|
21
|
{footerComponent} |
|
22
|
</main> |
|
23
|
</RootLayout> |
|
24
|
) |
|
25
|
} |