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