score:3

const Swiper = () => {
      return (
        <Carousel
           renderArrowPrev={(clickHandler, hasPrev, labelPrev) =>
                hasPrev && (
                    <button onClick={clickHandler}>
                        <img 
                            style={{ height: "30px", width: "30px" }}
                            src={`assets/img/previous.svg`} />
                    </button>
                )
            }
            renderArrowNext={(clickHandler, hasNext, labelNext) =>
                hasNext && (
                    <button onClick={clickHandler}>
                        <img
                            style={{ height: "30px", width: "30px"}}
                            src={`assets/img/next.svg`} />
                    </button>
                )
            }
         renderThumbs={() => null}
        >
          {getSlides()}
        </Carousel>
      );
    };

Related Query

More Query from same tag