mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-03 12:28:13 +03:00
44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
import BackgroundImage from "components/layout/misc/BackgroundImage";
|
|
import { BackgroundContextProvider } from "context/BackgroundContext";
|
|
import React from "react";
|
|
import { JustChildren } from "types/react";
|
|
import { Footer } from "./footer/Footer";
|
|
import { Header } from "./header/Header";
|
|
import { HeaderMobile } from "./header/HeaderMobile";
|
|
import { SubHeader } from "./subheader/SubHeader";
|
|
|
|
export function Layout({ children }: JustChildren) {
|
|
return (
|
|
<>
|
|
<HeaderMobile />
|
|
|
|
<div className="d-flex flex-column flex-root">
|
|
<div className="d-flex flex-row flex-column-fluid page">
|
|
<div
|
|
className="d-flex flex-column flex-row-fluid wrapper"
|
|
id="kt_wrapper"
|
|
style={{ overflowX: "hidden" }}
|
|
>
|
|
<Header />
|
|
|
|
<BackgroundContextProvider>
|
|
<BackgroundImage />
|
|
|
|
<div
|
|
id="kt_content"
|
|
className="content d-flex flex-column flex-column-fluid"
|
|
>
|
|
<SubHeader />
|
|
|
|
<div className="container">{children}</div>
|
|
</div>
|
|
</BackgroundContextProvider>
|
|
|
|
<Footer />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</>
|
|
);
|
|
}
|