import { ReactNode } from "react" // @mui material components import Grid from "@mui/material/Grid" // ThreeD Garden components import MDBox from "~/components/mui/MDBox" import MDTypography from "~/components/mui/MDTypography" // 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" // ThreeD Garden context import { useMaterialUIController } from "~/context" // Declaring props types for IllustrationLayout interface Props { header?: ReactNode title?: string description?: string children: ReactNode illustration?: string } function IllustrationLayout({ header, title, description, illustration, children, }: Props): JSX.Element { const [controller] = useMaterialUIController() const { darkMode } = controller return ( darkMode ? background.default : white.main, }}> {!header ? ( <> {title} {description} ) : ( header )} {children} ) } // Declaring default props for IllustrationLayout IllustrationLayout.defaultProps = { header: "", title: "", description: "", illustration: "", } export default IllustrationLayout