'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"; import Link from "next/link"; import { topItemContent } from "@/data/products"; const TopItem = () => { const settings = { dots: false, arrows: false, centerPadding: "0", slidesToShow: 4, slidesToScroll: 1, autoplay: true, autoplaySpeed: 3000, responsive: [ { breakpoint: 1200, settings: { slidesToShow: 3, }, }, { breakpoint: 768, settings: { slidesToShow: 2, }, }, { breakpoint: 576, settings: { slidesToShow: 1, }, }, ], }; return ( <> {topItemContent.map((item) => (
shop product
{item.tag}
{/* */}
{item.title}
    {item.ratings}
${item.price.toFixed(2)}
{/* */}
{/* */}
))}
); }; export default TopItem;