import { styled } from '@mui/material/styles';
import Switch from '@mui/material/Switch';
const TableSwitch = styled(Switch)(({ theme }) => ({
padding: 8,
'& .MuiSwitch-track': {
borderRadius: 22 / 2,
'&:before, &:after': {
content: '""',
position: 'absolute',
top: '50%',
transform: 'translateY(-50%)',
width: 16,
height: 16
},
'&:before': {
backgroundImage: `url('data:image/svg+xml;utf8,')`,
left: 12
},
'&:after': {
backgroundImage: `url('data:image/svg+xml;utf8,')`,
right: 12
}
},
'& .MuiSwitch-thumb': {
boxShadow: 'none',
width: 16,
height: 16,
margin: 2
}
}));
export default TableSwitch;