import { Box, BoxProps } from '../Box'; import { forwardRef } from 'react'; import { useDevices } from '../hooks'; import { alpha, useTheme } from '../theme'; interface Prop extends BoxProps { hoverColor?: string; } const HoverAddBackground = forwardRef( ({ sx, hoverColor, ...other }, ref) => { const theme = useTheme(); const { isMobile } = useDevices(); const isLight = theme.palette.mode === 'light'; const hoverCss = isMobile ? {} : { '&:hover': { backgroundColor: hoverColor || alpha(theme.palette.text.primary, 0.04), }, }; return ( ); }, ); HoverAddBackground.displayName = 'HoverAddBackground'; export default HoverAddBackground;