Im trying to create a custom carousel with @trendyol-js/react-carousel but running im missing some properties in the but i dont know how to structure the code to solve it.
error: Type '{ leftArrow: Element; rightArrow: Element; }' is missing the following properties from type 'CarouselProps': children, show, slide
const CustomCarousel: React.FC = () => {
const classes = useStyles();
return (
<Carousel
leftArrow={
<IconButton className={classes.arrow}>
<ArrowBackIos />
</IconButton>
}
rightArrow={
<IconButton className={classes.arrow}>
<ArrowForwardIos />
</IconButton>
}
></Carousel>
);
};