29 lines
687 B
TypeScript
Raw Permalink Normal View History

2024-02-18 01:44:48 -05:00
// ** MUI Imports
import { Theme } from '@mui/material/styles'
// ** Util Import
import { hexToRGBA } from '../../../core/utils/hex-to-rgba'
const Tooltip = (theme: Theme) => {
return {
MuiTooltip: {
styleOverrides: {
tooltip: {
backgroundColor:
theme.palette.mode === 'light'
? hexToRGBA(theme.palette.grey[900], 0.9)
: hexToRGBA(theme.palette.grey[700], 0.9)
},
arrow: {
color:
theme.palette.mode === 'light'
? hexToRGBA(theme.palette.grey[900], 0.9)
: hexToRGBA(theme.palette.grey[700], 0.9)
}
}
}
}
}
export default Tooltip