"use client"; import { useRef } from "react"; import { Eyebrow, CP, CT, H5 } from "@/components/Texts"; import { IoArrowBackOutline, IoArrowForwardOutline } from "react-icons/io5"; const capabilities = [ { isIntro: true, eyebrow: "CAPABILITIES", title: "Flexible, Resilient, and Controllable Storage", description: "Mycelium Storage is designed for modern data workloads, providing a range of access methods and control over data placement.", }, { title: "S3-Compatible Object Storage", description: "Works with existing SDKs & tooling.", imageUrl: "/images/s3.png", }, { title: "IPFS & Content-Addressed Access", description: "Ideal for distributed and decentralized workloads.", imageUrl: "/images/ipfs.png", }, { title: "Filesystem Mounts (WebDAV / POSIX)", description: "Mount storage directly into workflows and apps.", imageUrl: "/images/filesystem.png", }, { title: "Encrypted Replication & Placement Control", description: "Choose data's ownership and locations.", imageUrl: "/images/encrypted.png", }, ]; export function StorageCapabilitiesNew() { const sliderRef = useRef(null); const scrollLeft = () => sliderRef.current?.scrollBy({ left: -400, behavior: "smooth" }); const scrollRight = () => sliderRef.current?.scrollBy({ left: 400, behavior: "smooth" }); return (
{/* Horizontal Slider — shows part of next card */}
    {capabilities.map((item, idx) => (
  • {/* First card with arrows */} {item.isIntro ? (
    {item.eyebrow}
    {item.title}

    {item.description}

    {/* Arrows inside first card */}
    ) : (

    {item.title}

    {item.description}

    )}
  • ))}
); }