"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: "What You Can Run", description: "Mycelium Compute supports multiple workload types on a single execution fabric, from legacy VMs to modern Kubernetes clusters.", }, { title: "Containers & K3s", description: "Deploy services, web apps, and APIs with full Kubernetes compatibility.", icon: (
Kubernetes
), }, { title: "Virtual Machines", description: "Run legacy apps and specialized stacks with secure boot and attestation.", icon: (
Virtual Machines
), }, { title: "Native Linux Workloads", description: "Execute agents, batch jobs, and custom tooling statelessly across the grid.", icon: (
Linux
), }, ]; export function ComputeCapabilitiesNew() { 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.icon} {item.title} {item.description} )}
  • ))}
); }