"use client"; // import { useState } from "react"; // import { Swiper, SwiperSlide } from "swiper/react"; // import { Navigation } from "swiper/modules"; import Image from "next/image"; import type { HomeSectionImage } from "@/types/home/type"; import Link from "next/link"; interface middleBannerProps { middleBanner: HomeSectionImage[]; } export default function HomeMiddleBanner({ middleBanner }: middleBannerProps) { // const [activeIndex, setActiveIndex] = useState(0); // const [swiperRef] = useState(null); if (!middleBanner || middleBanner.length === 0) return null; const middleBannerImages = middleBanner; // const handleSlideChange = (swiper: any) => { // setActiveIndex(swiper.activeIndex); // }; // const handleIndicatorClick = (index: any) => { // if (swiperRef) { // setActiveIndex(index); // } // }; return (
{/* */} {middleBannerImages.map((item, idx) => ( // {item.title} // {/* */} ))} {/* */} {/*
*/}
); }