import React from "react"; import { Swiper, SwiperSlide } from "swiper/react"; import { Pagination } from "swiper/modules"; import "swiper/css"; import "swiper/css/pagination"; import "swiper/css/navigation"; import "./css/swiper-custom.css"; import { OpenAddToCartModalButton } from "@/components/common/AddToCartModal/OpenAddToCartModalButton"; import {HomeProduct,HomeSectionImage} from "@/types/home/type" interface zeroWearProps { zeroWear: HomeProduct[]; zeroWearImage:HomeSectionImage[] } // const productList = [ // { // id: 1, // img: "https://picsum.photos/400/500?random=1", // title: "14-36 In Water Wave Hum...", // price: 143.35, // }, // { // id: 2, // img: "https://picsum.photos/400/500?random=2", // title: "14-36 In Water Wave Hum.", // price: 143.35, // }, // { // id: 3, // img: "https://picsum.photos/400/500?random=3", // title: "14-36 In Water Wave Hum...", // price: 143.35, // }, // { // id: 4, // img: "https://picsum.photos/400/500?random=4", // title: "14-36 In Water Wave Hum.", // price: 143.35, // }, // ]; const MiddleImageSwiper = ({ zeroWear,zeroWearImage }: zeroWearProps) => { if (!zeroWear || zeroWear.length === 0) return null; const productList = zeroWear const WearImage = zeroWearImage; return (
{item.name}
{/* 价格 + 购物车图标 */}