import { useState } from 'react' import { Link, useLocation } from 'react-router-dom' import { Dropdown } from './ui/Dropdown' import { ChevronDownIcon } from '@heroicons/react/20/solid' import { Container } from './Container' import { Button } from './Button' import pmyceliumLogo from '../images/logos/logo_1.png' import { Dialog } from '@headlessui/react' import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline' const cloudNavItems = [ { name: 'Cloud', href: '/cloud' }, { name: 'Compute', href: '/compute' }, { name: 'Storage', href: '/storage' }, { name: 'GPU', href: '/gpu' }, ] export function Header() { const location = useLocation() const [mobileMenuOpen, setMobileMenuOpen] = useState(false) const getCurrentPageName = () => { const currentPath = location.pathname; if (currentPath.startsWith('/compute')) return 'Compute'; if (currentPath.startsWith('/storage')) return 'Storage'; if (currentPath.startsWith('/gpu')) return 'GPU'; if (currentPath.startsWith('/cloud')) return 'Cloud'; return 'Cloud'; }; return (
Mycelium
{cloudNavItems.map((item) => ( {item.name} ))} Network Agents
) }