mirror of
https://github.com/D4M13N-D3V/comissions-app-ui.git
synced 2025-03-14 08:15:08 +00:00
26 lines
577 B
TypeScript
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
|