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

Current Tasks

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