import { Theme } from '@mui/material/styles'; // ---------------------------------------------------------------------- export default function Slider(theme: Theme) { const isLight = theme.palette.mode === 'light'; return { MuiSlider: { defaultProps: { size: 'small', }, styleOverrides: { root: { '&.Mui-disabled': { color: theme.palette.action.disabled, }, }, rail: { opacity: 0.32, }, markLabel: { fontSize: 13, color: theme.palette.text.disabled, }, valueLabel: { borderRadius: 8, backgroundColor: theme.palette.grey[isLight ? 800 : 700], }, }, }, }; }