'use client'; import React from "react"; import Image from "next/image"; import type { Product } from "../types"; import { SimpleCarousel } from "./SimpleCarousel"; interface ProductCarouselSectionProps { products: Product[]; title?: string; description?: string; eyebrow?: string; } export function ProductCarouselSection({ products, title = "核心监测终端与智能设备", description = "多模态感知硬件覆盖城市结构安全监测的关键场景,支持长续航、低功耗与云端协同。", eyebrow = "Product Portfolio", }: ProductCarouselSectionProps) { if (!products || products.length === 0) { return null; } return (
{eyebrow && (

{eyebrow}

)}

{title}

{description && (

{description}

)}
item.id} className="w-full rounded-[28px] bg-white/90 p-6 shadow-[0_30px_60px_rgba(15,31,57,0.08)] min-h-[520px] md:min-h-[460px] md:p-10" renderItem={(item) => (
{item.eyebrow && ( {item.eyebrow} )}

{item.name}

{item.summary && (

{item.summary}

)} {item.bullets && item.bullets.length > 0 && (
    {item.bullets.map((bullet, index) => (
  • {bullet}
  • ))}
)} {item.badges && item.badges.length > 0 && (
{item.badges.map((badge, index) => ( {badge} ))}
)}
{item.name}
)} interval={7000} />
); }