import PropTypes from 'prop-types'; // @mui material components import Grid from '@mui/material/Grid'; // Material Dashboard 2 PRO React components import MDBox from 'components/MDBox'; import MDTypography from 'components/MDTypography'; // Material Dashboard 2 PRO React example components import PageLayout from 'layouts/PageLayout'; // Material Dashboard 2 PRO React context import { useMaterialUIController } from 'context'; import companyImage from 'assets/images/fsr-logo.png'; function AuthLayout({ header, title, description, illustration, children }) { const [controller] = useMaterialUIController(); const { darkMode } = controller; return ( darkMode ? background.default : white.main }} > {!header ? ( <> {title} {description} ) : ( header )} {children} ); } // Setting default values for the props of AuthLayout AuthLayout.defaultProps = { header: '', title: '', description: '', illustration: '' }; // Typechecking props for the AuthLayout AuthLayout.propTypes = { header: PropTypes.node, title: PropTypes.string, description: PropTypes.string, children: PropTypes.node.isRequired, illustration: PropTypes.string }; export default AuthLayout;