import { ListItemButton as MuiListItemButton, styled } from '@mui/material'; import { getContrastAlphaColor } from '../utils/colors.js'; export const ListItemButton = styled(MuiListItemButton)(({ theme, disabled, }) => { const backgroundHoverColor = getContrastAlphaColor(theme, 0.04); return { borderRadius: theme.shape.borderRadius, paddingLeft: theme.spacing(1.5), height: 56, '&:hover': { backgroundColor: !disabled && backgroundHoverColor, }, ...(disabled ? { opacity: 0.5, cursor: 'auto' } : {}), }; });