"use client"; import { useState } from "react"; import { Cube } from "@/components/ui/Cube"; const stackData = [ { id: "network", title: "Network", descriptionTitle: "Secure Network", description: "End-to-end encrypted overlay network, always looking for the shortest possible path between participants. Logical Internet address securely linked to a private key. Unlimited scale and performance optimizations.", position: "top", }, { id: "data", title: "Data", descriptionTitle: "Unbreakable Data", description: "Private, distributed, and AI-native storage with user sovereignty at its core. End-to-end encryption and redundancy, with no central control. Optimized for performance and sustainability, far surpassing traditional cloud.", position: "middle", }, { id: "compute", title: "Compute", descriptionTitle: "Bare Metal OS", description: "Zero OS, an efficient and secure operating system, runs directly on the hardware – enabling an autonomous cloud. Can run any Web2, Web3, or AI workload at the edge of the Internet, with more scalability and reliability.", position: "bottom", }, ]; export function StackedCubes() { const [active, setActive] = useState("compute"); return (
{stackData.map((layer, index) => (
setActive(layer.id)} onLeave={() => setActive("compute")} />
))}
); }