'use client';
import { useEffect, useRef, useState } from 'react';
import {
Activity,
ArrowUpRight,
ChevronDown,
ClipboardList,
LayoutGrid,
Menu,
X,
Zap,
} from 'lucide-react';
import Link from 'next/link';
import * as Button from '@/components/ui/button';
import * as LinkButton from '@/components/ui/link-button';
import { cn } from '@/utils/cn';
const nav: Array<{
label: string;
href?: string;
isnew?: boolean;
navMenu?: boolean;
}> = [
{ label: 'Products', href: '/' },
{ label: 'Services', href: '/', isnew: true },
{ label: 'Solutions', navMenu: true },
{ label: 'Pricing', href: '/' },
{ label: 'Contact', href: '/' },
];
function NavDropdownMenu() {
return (
QUICK ACCESS HUB
Quick access hub
Manage projects in one unified workspace.
Overview
Workflow
Checklists
v.1.5.69 · Apex Tech™
TOOLS
Centralized workspace
Real-time sync
Smart alerts
Fast lookups
SUPPORTS
Help center
Getting started
Community forum
featured
Your wallet, anywhere
Securely manage money on the go
Get the app
);
}
const Logo = ({ className }: { className?: string }) => (
);
type Navigation01Props = {
announcement?: boolean;
};
export default function ApexMegaMenuHeader({
announcement = false,
}: Navigation01Props) {
const [isMenuOpen, setIsMenuOpen] = useState(false);
const [activeNavMenu, setActiveNavMenu] = useState(null);
const navContentRef = useRef(null);
const [navHeight, setNavHeight] = useState(0);
useEffect(() => {
if (navContentRef.current) {
setNavHeight(navContentRef.current.scrollHeight);
}
}, [activeNavMenu]);
useEffect(() => {
document.body.style.overflow = isMenuOpen ? 'hidden' : '';
return () => {
document.body.style.overflow = '';
};
}, [isMenuOpen]);
const toggleMenu = () => {
setIsMenuOpen(!isMenuOpen);
};
const toggleNavMenu = (label: string) => {
setActiveNavMenu(activeNavMenu === label ? null : label);
};
return (
Sign in
Get started
);
}