// ** React Imports import { Fragment, ReactNode } from 'react' // ** MUI Components import useMediaQuery from '@mui/material/useMediaQuery' import { styled, useTheme } from '@mui/material/styles' interface FooterIllustrationsProp { image1?: ReactNode image2?: ReactNode } // Styled Components const MaskImg = styled('img')(() => ({ bottom: 0, zIndex: -1, width: '100%', position: 'absolute' })) const Tree1Img = styled('img')(() => ({ left: 0, bottom: 0, position: 'absolute' })) const Tree2Img = styled('img')(() => ({ right: 0, bottom: 0, position: 'absolute' })) const FooterIllustrationsV1 = (props: FooterIllustrationsProp) => { // ** Props const { image1, image2 } = props // ** Hook const theme = useTheme() // ** Vars const hidden = useMediaQuery(theme.breakpoints.down('md')) if (!hidden) { return ( {image1 || } {image2 || } ) } else { return null } } export default FooterIllustrationsV1