Files
medusa-store/www/packages/docs-ui/src/layouts/wide.tsx
T
Shahed Nasser bf67f69f45 docs: move edit date to footer (#11667)
* docs: move edit date to footer

* fix build error
2025-02-28 16:27:42 +02:00

26 lines
612 B
TypeScript

import React from "react"
import { RootLayout, RootLayoutProps } from "./root"
import clsx from "clsx"
import { Breadcrumbs } from ".."
export const WideLayout = ({
children,
footerComponent,
showBreadcrumbs = true,
...props
}: RootLayoutProps) => {
return (
<RootLayout
{...props}
mainWrapperClasses={clsx(props.mainWrapperClasses, "mx-auto flex")}
contentClassName="w-full"
>
<main className={clsx("relative mt-4 w-full flex-1 lg:mt-7")}>
{showBreadcrumbs && <Breadcrumbs />}
{children}
{footerComponent}
</main>
</RootLayout>
)
}