import React from "react"; import styles from "./styles/CarouselSliders.module.css"; const CarouselSliders = (props) => { const [activeIdx, setActiveIdx] = React.useState(0); return ( <>
{!props.matches.length ? null : (
{props.matches.map((match, index) => { const [h, m, s] = match.timestamp.split(":"); const timestamp = parseInt(h, 10) * 360 + parseInt(m, 10) * 60 + parseInt(s, 10); return ( <>
); })}
)}
{props.matches.map((_, index) => { return ( { setActiveIdx(index); }} > ); })}
); }; export default CarouselSliders;