import { Carousel } from 'antd' import { LeftCircleFilled, RightCircleFilled } from '@ant-design/icons' import defaultPhoto from '../../materials/default-photo.png' import backendURL from '../../helpers/backendUrl' import { videoRegex } from '../../helpers' const SampleNextArrow = (props) => { const { onClick } = props return (
) } const SamplePrevArrow = (props) => { const { onClick } = props return (
) } export const MyCarousel = ({ images = [], carouselWidth, carouselHeight }) => { return ( <>
} prevArrow={} > { images ? ( images?.map( (i, index) => i?.url && ( i?.originalFileName?.match(videoRegex) ?
:
), ) // : ) : (
)}
) }