2024-02-18 01:44:48 -05:00

26 lines
577 B
TypeScript

// ** MUI Imports
import { Theme } from '@mui/material/styles'
// ** Util Import
import { hexToRGBA } from '../../../core/utils/hex-to-rgba'
const Backdrop = (theme: Theme) => {
return {
MuiBackdrop: {
styleOverrides: {
root: {
backgroundColor:
theme.palette.mode === 'light'
? `rgba(${theme.palette.customColors.main}, 0.7)`
: hexToRGBA(theme.palette.background.default, 0.7)
},
invisible: {
backgroundColor: 'transparent'
}
}
}
}
}
export default Backdrop