Files
frontend/src/app/(withAuth)/(dashboardLayout)/layout.js
AmirHossein Mahmoodi 1286987a5c fixed bug
2025-05-13 14:08:34 +03:30

18 lines
586 B
JavaScript

"use client";
import HeaderWithLogo from "@/components/layouts/dashboard/headerWithLogo";
import HeaderWithSidebar from "@/components/layouts/dashboard/headerWithSidebar";
import { Stack } from "@mui/material";
import { SWRConfig } from "swr";
const Layout = ({ children }) => {
return (
<SWRConfig value={{ provider: () => new Map() }}>
<Stack sx={{ width: "100%", height: "100%" }}>
<HeaderWithLogo />
<HeaderWithSidebar>{children}</HeaderWithSidebar>
</Stack>
</SWRConfig>
);
};
export default Layout;