'use client'; import React from 'react'; import { CarouselCore } from '@theme/components/carousel-core'; import { ProductItem } from '@theme/views/product-item'; import { Icon } from '@theme/components'; import { useRef } from 'react'; const responsive = { desktop: { breakpoint: { max: 3000, min: 1024 }, items: 5 }, tablet: { breakpoint: { max: 1024, min: 768 }, items: 3 }, mobile: { breakpoint: { max: 768, min: 0 }, items: 2 } }; export default function RecommendationContent({ data }) { const carouselRef = useRef(null); const goToPrev = () => { carouselRef.current.previous(); }; const goToNext = () => { carouselRef.current.next(); }; return ( data?.products && (
{data?.attributes?.title?.value && (
{data?.attributes?.title.value}
)}
{data?.products?.map((product, index) => (
))}
) ); }