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" // Authentication layout components import Footer from "~/pages/authentication/components/Footer" // ThreeD Garden page layout routes import pageRoutes from "~/routes/page.routes" // for image typing import { StaticImageData } from "next/future/image" // Declaring props types for CoverLayout interface Props { coverHeight?: string image: string | StaticImageData children: ReactNode } function CoverLayout({ coverHeight, image, children }: Props): JSX.Element { return ( image && `${linearGradient( rgba(gradients.dark.main, 0.4), rgba(gradients.dark.state, 0.4) )}, url(${image})`, backgroundSize: "cover", backgroundPosition: "center", backgroundRepeat: "no-repeat", }} /> {children}