Files
Checkmate/client/src/Components/v1/Layouts/HomeLayout/index.jsx
T

32 lines
687 B
React
Raw Normal View History

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";
import { Stack } from "@mui/material";
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 = () => {
const { requiredPaddingRight } = useUserGuideSidebarContext();
return (
<Stack
className="home-layout"
flexDirection="row"
gap={14}
>
<Sidebar />
<Stack
className="home-content-wrapper"
sx={{
paddingRight: `${requiredPaddingRight}px`,
transition: "padding-right 300ms ease-in-out",
}}
>
<Outlet />
</Stack>
2026-01-17 10:49:16 -05:00
<UserGuideSidebar />
</Stack>
);
2024-06-06 13:10:13 -07:00
};
2024-05-06 12:29:36 -04:00
export default HomeLayout;