import { useState, useEffect } from "react"; import { useNavigate } from "react-router-dom"; import { Zap } from "lucide-react"; interface Arm { id: string; name: string; label: string; color: string; bgColor: string; textColor: string; href: string; } const ARMS: Arm[] = [ { id: "labs", name: "AeThex | Labs", label: "Labs", color: "#FBBF24", bgColor: "bg-yellow-500/20", textColor: "text-yellow-400", href: "/research", }, { id: "gameforge", name: "AeThex | GameForge", label: "GameForge", color: "#22C55E", bgColor: "bg-green-500/20", textColor: "text-green-400", href: "/game-development", }, { id: "corp", name: "AeThex | Corp", label: "Corp", color: "#3B82F6", bgColor: "bg-blue-500/20", textColor: "text-blue-400", href: "/consulting", }, { id: "foundation", name: "AeThex | Foundation", label: "Foundation", color: "#EF4444", bgColor: "bg-red-500/20", textColor: "text-red-400", href: "/community", }, { id: "devlink", name: "AeThex | Dev-Link", label: "Dev-Link", color: "#06B6D4", bgColor: "bg-cyan-500/20", textColor: "text-cyan-400", href: "/dev-link", }, ]; const LOGO_URLS: Record = { labs: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2F85fe7910cff6483db1ea99c154684844?format=webp&width=800", gameforge: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2Fcd3534c1caa0497abfd44224040c6059?format=webp&width=800", corp: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2Fae654ecc18b241bdab273893e8231970?format=webp&width=800", foundation: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2Fc02cb1bf5056479bbb3ea4bd91f0d472?format=webp&width=800", devlink: "https://cdn.builder.io/api/v1/image/assets%2Ffc53d607e21d497595ac97e0637001a1%2F9a96b43cbd7b49bb9d5434580319c793?format=webp&width=800", }; export default function ArmSwitcher() { const navigate = useNavigate(); const handleArmClick = (href: string) => { navigate(href); }; return (
{ARMS.map((arm) => ( ))}
); }