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";
|
2026-01-16 22:26:43 -05:00
|
|
|
import { Box, Stack } from "@mui/material";
|
2026-01-18 14:11:05 -05:00
|
|
|
import { useSidebar } from "@/Hooks/useSidebar.js";
|
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-18 14:11:05 -05:00
|
|
|
const { width, transition } = useSidebar();
|
2026-01-16 22:26:43 -05:00
|
|
|
|
2024-10-17 12:05:06 +08:00
|
|
|
return (
|
|
|
|
|
<Stack
|
|
|
|
|
className="home-layout"
|
|
|
|
|
flexDirection="row"
|
|
|
|
|
>
|
|
|
|
|
<Sidebar />
|
2026-01-16 22:26:43 -05:00
|
|
|
{/* Spacer for fixed sidebar */}
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
2026-01-18 14:11:05 -05:00
|
|
|
width,
|
2026-01-16 22:26:43 -05:00
|
|
|
flexShrink: 0,
|
2026-01-18 14:11:05 -05:00
|
|
|
transition,
|
2026-01-16 22:26:43 -05:00
|
|
|
}}
|
|
|
|
|
/>
|
2025-03-21 23:39:51 -04:00
|
|
|
<Stack className="home-content-wrapper">
|
|
|
|
|
<Outlet />
|
|
|
|
|
</Stack>
|
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;
|