18 lines
586 B
JavaScript
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;
|