import { useState, useEffect } from 'react';
import Link from 'next/link';
import {
Shield,
Target,
Zap,
BarChart3,
Scale,
FileText,
Users,
Settings,
Menu,
X,
ExternalLink
} from 'lucide-react';
export default function Layout({ children, activeSection = 'dashboard' }) {
const [sidebarOpen, setSidebarOpen] = useState(false);
const [scrolled, setScrolled] = useState(false);
useEffect(() => {
const handleScroll = () => setScrolled(window.scrollY > 20);
window.addEventListener('scroll', handleScroll);
return () => window.removeEventListener('scroll', handleScroll);
}, []);
const navItems = [
{ id: 'dashboard', label: 'Command Center', icon: Target, href: '/' },
{ id: 'rebuttal', label: 'Kill-Shot Generator', icon: Zap, href: '/rebuttal' },
{ id: 'verification', label: 'Truth Forge', icon: Shield, href: '/verification' },
{ id: 'analytics', label: 'War Analytics', icon: BarChart3, href: '/analytics' },
{ id: 'legal', label: 'Legal Arsenal', icon: Scale, href: '/legal' },
{ id: 'intelligence', label: 'Intel Vault', icon: FileText, href: '/intelligence' },
{ id: 'network', label: 'War Room', icon: Users, href: '/network' },
{ id: 'config', label: 'TITAN Config', icon: Settings, href: '/config' },
];
const anycoderLink = (
Built with anycoder