<div className={style.left_image}>
<Image
src={`/photos/image1.png`}
alt="save-picture"
width={202}
height={141}
className={style.original_image}
/>
<Image
src="/photos/assets/image2.png"
alt="additional-image"
width={30}
height={141}
className={style.additional_image}
/>
</div>
<div className={style.right_image}>
<Image
src="/photos/assets/image2.png"
alt="additional-image"
width={30}
height={141}
className={style.additional_image}
/>
<Image
src={`/photos/image2.png`}
alt="save-picture"
width={202}
height={141}
className={style.original_image}
/>
</div>
<div className={style.left_image}>
<Image
src={`/photos/image3.png`}
alt="save-picture"
width={202}
height={141}
className={style.original_image}
/>
<Image
src="/photos/assets/image2.png"
alt="additional-image"
width={30}
height={141}
className={style.additional_image}
/>
</div>
<div className={style.right_image}>
<Image
src="/photos/assets/image2.png"
alt="additional-image"
width={30}
height={141}
className={style.additional_image}
/>
<Image
src={`/photos/image4.png`}
alt="save-picture"
width={202}
height={141}
className={style.original_image}
/>
</div>
</div>
Всем привет, подскажите пожалуйста как можно оптимизировать этот код?
сократить до одного компонента и рендерить через map
Обсуждают сегодня