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