1. import { alpha, useTheme, styled } from '@mui/material/styles';
    2. export default function xxx{
    3. const theme = useTheme();
    4. const isLight = theme.palette.mode === 'light';
    5. const isRTL = theme.direction === 'rtl';
    6. return(
    7. <Image
    8. disabledEffect
    9. alt={`screen ${index + 1}`}
    10. //通过判断模式切换相应图片
    11. src={`https://minimal-assets-api.vercel.app/assets/images/home/screen_${
    12. isLight ? 'light' : 'dark'
    13. }_${index + 1}.png`}
    14. />
    15. )
    16. }