import React, { useRef } from "react"; import ProductCardStyleOne from "../Cards/ProductCardStyleOne"; import Icons from "../Helpers/Icons"; import SliderCom from "../Helpers/SliderCom"; export default function TrendingSection({ className, trending }) { const settings = { arrows: false, slidesToShow: 4, slidesToScroll: 4, infinite: true, responsive: [ { breakpoint: 1025, settings: { slidesToShow: 3, slidesToScroll: 3, }, }, { breakpoint: 769, settings: { slidesToShow: 2, slidesToScroll: 2, }, }, { breakpoint: 619, settings: { slidesToShow: 1, slidesToScroll: 1, }, }, ], }; const trendingSlider = useRef(null); const prevHandler = () => { trendingSlider.current.slickPrev(); }; const nextHandler = () => { trendingSlider.current.slickNext(); }; return (
{/* heading */}

Tranding Action

{/* trending products */}
{trending && trending.length > 0 && trending.map((item) => ( ))}
); }