I'm trying to integrate the react-slick dots with custom arrows from material UI icons, but both of them don't seem to integrate in a straight line with dots in middle, and arrows on left and right of the end dots. Since the number of images may vary, adding left & right margins doesn't seem to be an option. Can anyone help me with that?
[Edit] - Adding code
<Modal>
<Slider {...settings}>
{arr.map((x)=>{
<>
<div>
<img src="x.url"/>
</div>
<div>
{x.des}
</div>
</>
})}
</Slider>
<button className="button-left" onClick={()=>{goToPrev}}>left</button>
<button className="button-right" onClick={()=>{goToNext}}Right</button></Modal>