'use client'; import React from "react"; import Image from "next/image"; import type { SolutionItem } from "../types"; import { SimpleCarousel } from "./SimpleCarousel"; interface SolutionsCarouselProps { items: SolutionItem[]; title?: string; eyebrow?: string; description?: string; } export function SolutionsCarousel({ items, title = "行业安全监测解决方案矩阵", eyebrow = "Solutions Suite", description = "覆盖房屋、边坡、交通、能源等多场景的安全监测方案,联动多源感知与云端智能决策。", }: SolutionsCarouselProps) { if (!items || items.length === 0) { return null; } return (
{eyebrow && (

{eyebrow}

)}

{title}

{description && (

{description}

)}
item.id} className="w-full rounded-[28px] bg-white/95 p-6 shadow-[0_24px_48px_rgba(17,138,244,0.08)] min-h-[520px] md:min-h-[460px] md:p-10" renderItem={(item) => (
{item.tag && ( {item.tag} )}

{item.title}

{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.title}
)} interval={6500} />
); }