Files
Checkmate/client/src/Components/v2/Layouts/RootLayout.tsx
T

23 lines
453 B
TypeScript
Raw Normal View History

2025-09-26 16:01:05 -07:00
import { Outlet } from "react-router";
import Stack from "@mui/material/Stack";
2025-09-27 15:47:56 -07:00
import { SideBar } from "@/Components/v2/Layouts/Sidebar";
2025-10-03 12:45:21 -07:00
import { useTheme } from "@mui/material/styles";
2025-09-27 14:48:05 -07:00
const RootLayout = () => {
2025-10-03 12:45:21 -07:00
const theme = useTheme();
2025-09-26 16:01:05 -07:00
return (
<Stack
direction="row"
minHeight="100vh"
>
<SideBar />
2025-10-03 12:45:21 -07:00
<Stack
flex={1}
padding={theme.spacing(12)}
>
<Outlet />
</Stack>
2025-09-26 16:01:05 -07:00
</Stack>
);
};
export default RootLayout;