2025-09-27 14:54:55 -07:00
|
|
|
import Sidebar from "../../Sidebar/index.jsx";
|
2024-06-06 13:10:13 -07:00
|
|
|
import { Outlet } from "react-router";
|
2024-09-06 16:32:38 -04:00
|
|
|
import { Stack } from "@mui/material";
|
2026-01-17 13:04:30 -05:00
|
|
|
import { UserGuideSidebar, useUserGuideSidebarContext } from "../../UserGuide";
|
2024-07-26 12:39:18 -04:00
|
|
|
|
2024-06-06 13:10:13 -07:00
|
|
|
import "./index.css";
|
|
|
|
|
|
2024-05-06 12:29:36 -04:00
|
|
|
const HomeLayout = () => {
|
2026-01-17 13:04:30 -05:00
|
|
|
const { requiredPaddingRight } = useUserGuideSidebarContext();
|
|
|
|
|
|
2024-10-17 12:05:06 +08:00
|
|
|
return (
|
|
|
|
|
<Stack
|
|
|
|
|
className="home-layout"
|
|
|
|
|
flexDirection="row"
|
|
|
|
|
gap={14}
|
|
|
|
|
>
|
|
|
|
|
<Sidebar />
|
2026-01-17 13:09:54 -05:00
|
|
|
<Stack
|
|
|
|
|
className="home-content-wrapper"
|
|
|
|
|
sx={{
|
|
|
|
|
paddingRight: `${requiredPaddingRight}px`,
|
|
|
|
|
transition: "padding-right 300ms ease-in-out",
|
|
|
|
|
}}
|
|
|
|
|
>
|
2025-03-21 23:39:51 -04:00
|
|
|
<Outlet />
|
|
|
|
|
</Stack>
|
2026-01-17 10:49:16 -05:00
|
|
|
<UserGuideSidebar />
|
2024-10-17 12:05:06 +08:00
|
|
|
</Stack>
|
|
|
|
|
);
|
2024-06-06 13:10:13 -07:00
|
|
|
};
|
2024-05-06 12:29:36 -04:00
|
|
|
|
2024-06-01 14:29:54 -07:00
|
|
|
export default HomeLayout;
|