import React from "react";
import {
Box,
Flex,
Spacer,
IconButton,
useBreakpointValue,
ButtonGroup,
Badge,
Text,
} from "@chakra-ui/react";
import { BiLeftArrowAlt, BiRightArrowAlt, BiHeart } from "react-icons/bi";
import { RxCross1 } from "react-icons/rx";
import Slider from "react-slick";
const settings = {
dots: true,
arrows: false,
fade: true,
infinite: true,
autoplay: true,
speed: 500,
autoplaySpeed: 5000,
slidesToShow: 1,
slidesToScroll: 1,
};
export default function Carousel(props) {
const { borderRadiusImg, actualUser, potentialMatch } = props;
const [slider, setSlider] = React.useState();
const heightPhoto = "75vh";
const heightText = "25vh";
const top = useBreakpointValue({ base: "90%", md: "50%" });
const side = useBreakpointValue({ base: "30%", md: "10px" });
return (
<>
{/* CSS files for react-slick */}
{/* Left Icon */}
slider?.slickPrev()}
>
{/* Right Icon */}
slider?.slickNext()}
>
{/* Slider */}
setSlider(slider)}>
{potentialMatch.images.map((url, index) => (
))}
{potentialMatch.firstName} {potentialMatch.lastName} ,{" "}
{potentialMatch.age} ans
{potentialMatch.aPropos}
Passions :
{potentialMatch.passions.map((passion, index) =>
actualUser.passions.includes(passion) ? (
#{passion}
) : (
#{passion}
)
)}
>
);
}