'use client' import Image from "next/image"; import React from "react"; import Slider from "react-slick"; import "slick-carousel/slick/slick.css"; import "slick-carousel/slick/slick-theme.css"; const LatestProduct = () => { const settings = { dots: false, arrow: true, infinite: true, speed: 900, slidesToShow: 3, slidesToScroll: 1, autoplay: false, centerPadding: "0", responsive: [ { breakpoint: 991, settings: { slidesToShow: 2, }, }, { breakpoint: 576, settings: { slidesToShow: 1, }, }, ], }; const vrProducts = [ { _id: 1, image: "img_115", title: "Oculus Quest", productLink: "#", price: "72.00", rating: ["fa-star", "fa-star", "fa-star", "fa-star", "fa-star-o"], }, { _id: 2, image: "img_116", title: "VR Controller", productLink: "#", price: "27.00", rating: ["fa-star", "fa-star", "fa-star", "fa-star", "fa-star"], }, { _id: 3, image: "img_117", title: "Play Station 2", productLink: "#", price: "382.00", rating: ["fa-star", "fa-star", "fa-star", "fa-star", "fa-star"], }, { _id: 4, image: "img_116", title: "VR Controller", productLink: "#", price: "27.00", rating: ["fa-star", "fa-star", "fa-star", "fa-star", "fa-star"], }, ]; return ( <> {vrProducts.map((product) => (
vr product

{product.title}

${product.price}
    {product.rating.map((star, i) => (
  • ))}
))}
); }; export default LatestProduct;