import { ReactNode } from "react" // @mui material components import Grid from "@mui/material/Grid" import { Theme } from "@mui/material/styles" // ThreeD Garden components import MDBox from "~/components/mui/MDBox" // ThreeD Garden examples components import DefaultNavbar from "~/components/elements/Navbars/DefaultNavbar" import PageLayout from "~/components/elements/LayoutContainers/PageLayout" // ThreeD Garden page layout routes import pageRoutes from "~/routes/page.routes" // Authentication pages components import Footer from "~/pages/authentication/components/Footer" // Declaring props types for BasicLayout interface Props { image: string children: ReactNode } function BasicLayout({ image, children }: Props): JSX.Element { return ( image && `${linearGradient( rgba(gradients.dark.main, 0.6), rgba(gradients.dark.state, 0.6) )}, url(${image})`, backgroundSize: "cover", backgroundPosition: "center", backgroundRepeat: "no-repeat", }} /> {children}