import React from 'react'; // material-ui import { useTheme } from '@mui/material/styles'; import { Box } from '@mui/material'; // assets import AuthPattern from 'assets/images/auth/img-a2-grid.svg'; import AuthPatternDark from 'assets/images/auth/img-a2-grid-dark.svg'; // ===========================|| BACKGROUND GRID PATTERN 2 ||=========================== // const BackgroundPattern2 = ({ children }: { children: React.ReactElement | React.ReactElement[] }) => { const theme = useTheme(); return ( *': { position: 'relative', zIndex: 5 }, '&:after': { content: '""', position: 'absolute', top: 0, left: 0, right: 0, zIndex: 1, bottom: 0, bgcolor: theme.palette.mode === 'dark' ? theme.palette.dark.dark : theme.palette.primary.light, opacity: theme.palette.mode === 'dark' ? 0.85 : 0.9 } }} > {children} ); }; export default BackgroundPattern2;