"use client"; import { useState } from "react"; import { ScrollReveal, StaggerChildren } from "@/animations/Reveal"; import styles from "./WingsHowItWorks.module.css"; const STEPS = [ { label: "Local Pickup", desc: "Fast, on-demand first-mile logistics dispatched by electric vehicle.", icon: ( ), }, { label: "Airport Clearance", desc: "Automated screening, grouping, and rapid cross-docking at the hub.", icon: ( ), }, { label: "Air Transit", desc: "Optimized cargo flights bypass surface congestion on our regional fleet.", icon: ( ), }, { label: "Destination Hub", desc: "Immediate de-consolidation and screening upon arrival.", icon: ( ), }, { label: "EV Last-Mile", desc: "Zero-emission electric vehicles complete the final mile.", icon: ( ), }, ]; export default function WingsHowItWorks() { const [active, setActive] = useState(0); return ( / How It Works / Pickup to arrival, one connected flow {String(active + 1).padStart(2, "0")} / {String(STEPS.length).padStart(2, "0")} {STEPS.map((step, i) => ( setActive(i)} onClick={() => setActive(i)} role="button" tabIndex={0} onKeyDown={(e) => { if (e.key === "Enter" || e.key === " ") setActive(i); }} > {String(i + 1).padStart(2, "0")} {step.icon} Step {step.label} {step.desc} ))} ); }
{step.desc}