Files
aso/frontend/dashboard/src/theme/overrides/Tooltip.ts
2023-07-03 11:39:08 +07:00

21 lines
476 B
TypeScript

import { Theme } from '@mui/material/styles';
// ----------------------------------------------------------------------
export default function Tooltip(theme: Theme) {
const isLight = theme.palette.mode === 'light';
return {
MuiTooltip: {
styleOverrides: {
tooltip: {
backgroundColor: theme.palette.grey[isLight ? 800 : 700]
},
arrow: {
color: theme.palette.grey[isLight ? 800 : 700]
}
}
}
};
}